lezhnev74/dummy-config-loader
Composer 安装命令:
composer require lezhnev74/dummy-config-loader
包简介
This file allows me to lazy load config files and access entries with dot syntax: `database.default.driver`
README 文档
README
Usage
$config = new DummyConfigLoader\Config(__DIR__); // this will look for config files in this folder $value = $config->get('database.default.driver', 'mongodb');
You will get mariadb as $value if you will place file database.php in the given folder with contents:
return [ "default" => [ "driver" => "mariadb" ] ];
Otherwise you will get mongodb.
First section of any key addresses the file within the directory. One level of recursion allowed. If no such file found in the folder - exception will be thrown.
Installation
composer require lezhnev74/dummy-config-loader
Support
If you need help - feel comfortable to ping me at lezhnev.work@gmail.com
统计信息
- 总下载量: 98
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-13