makbari/dot-env-editor 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

makbari/dot-env-editor

最新稳定版本:0.1.4

Composer 安装命令:

composer require makbari/dot-env-editor

包简介

An editor for changing dotEnv file content

README 文档

README

Simple editor for edit .env file content using php

Installation with Composer

curl -s http://getcomposer.org/installer | php
php composer.phar require makbari/dot-env-editor

Usage

All you need to do is to create an object of Handler class and pass it your config path.

Example

$handler = new \makbari\DotEnvEditor\handler\Handler("Path_To_Your_Config");

$handler->add(['key' => 'value']);

Available methods

overview() - To list all .env content
add() - Add new key => value to .env file
update() - Update existing value in .env file
getDetails() - List all .env file content in json format
createBackup() - Create a backup from .env file
deleteBackup() - Delete an existing backup
restore() - Restore backup
delete() - Delete an existing key => value from .env file

统计信息

  • 总下载量: 18.48k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-26