2017 © Pedro Peláez
 

library phpeditdotenv

编辑'.env'文件

image

agile/phpeditdotenv

编辑'.env'文件

  • Friday, November 4, 2016
  • by huanguosoft
  • Repository
  • 1 Watchers
  • 1 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

phpeditdotenv

编辑“.env”文件, (*1)

加载

composer require 'agile/phpeditdotenv:~1.0'

或者在composer.json文件中添加
"require": {
    "agile/phpeditdotenv": "~1.0"
}

使用

use Agile\Phpeditdotenv\Dotenv;

public function index()
{
    // 读取
    $envData = Dotenv::load(realpath('../'));
    var_dump($envData);

    // 修改某一项参数并保存
    $envData['CACHE_DRIVER'] = 'redis';
    Dotenv::save($envData, realpath('../'));
}

The Versions

04/11 2016

dev-master

9999999-dev

编辑'.env'文件

  Sources   Download

MIT

The Requires

  • php >=5.4

 

environment env dotenv editdotenv

27/10 2016

1.0.1

1.0.1.0

编辑'.env'文件

  Sources   Download

MIT

The Requires

  • php >=5.4

 

environment env dotenv editdotenv

21/09 2016

1.0.0

1.0.0.0

编辑'.env'文件

  Sources   Download

MIT

The Requires

  • php >=5.4

 

environment env dotenv editdotenv