viloveul/config
Composer 安装命令:
composer require viloveul/config
包简介
Base Configuration for Viloveul Components.
README 文档
README
Installation
make sure your php version > 7.0
composer require viloveul/config
HOW
require __DIR__ . '/vendor/autoload.php'; $config = new Viloveul\Config\Configuration([ 'key' => 'value' ]); $config->setFoo('bar'); $config->bar = 'baz'; $config['main'] = 'item'; $otherConfig = Viloveul\Config\ConfigFactory::load('/path/to/your/config/file.php'); $anotherConfig = new Viloveul\Config\Configuration([ 'hello' => 'world' ]); $otherAnotherConfig = new Viloveul\Config\Configuration([ 'key' => 'dor' ]); $anotherOtherAnotherConfig = new Viloveul\Config\Configuration([ 'foo' => 'ssstttt' ]); $config->merge($otherConfig); $config->merge($anotherConfig); $config->merge($anotherConfig, false); $config->merge($anotherOtherAnotherConfig, true); var_dump($config->all());
统计信息
- 总下载量: 161
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-14