mhndev/config
最新稳定版本:1.0.0
Composer 安装命令:
composer require mhndev/config
包简介
Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files forked from hassankhan/config
README 文档
README
forked from hassankhan/config the one and only difference which I made is : access config values by file name
<?php use Noodlehaus\Config; // Load all supported files in a directory $conf = new Config(__DIR__ . '/config');
consider in mentioned path we have multiple config file and one of them is mail.php and it's content is as follow
<?php return [ 'driver'=>'file' ];
now you can access this variable like follow :
// Get value using key $debug = $conf->get('mail.driver');
统计信息
- 总下载量: 18.79k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-30