vakata/config
最新稳定版本:2.2.1
Composer 安装命令:
composer require vakata/config
包简介
A PHP config class (parses .env files)
README 文档
README
A PHP config class, which supports parsing .env files.
Install
Via Composer
$ composer require vakata/config
Usage
$config = new \vakata\config\Config([ 'key' => 'value' ]); $config->fromFile(__DIR__ . '/config.env'); $config->get('key'); // "value" $config->set('key', 2); // 2 $config->get('key'); // 2 $config->del('key'); // true $config->get('key'); // null $config->get('key', 'default'); // "default" $config->export(); // export all stored values to enviroment and $_SERVER $config->export(true); // same as above but overwrite existing values
Testing
$ phpunit --bootstrap ./vendor/autoload.php ./tests/
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email github@vakata.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 5.47k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-13