garoevans/config_loader
Composer 安装命令:
composer require garoevans/config_loader
包简介
Really simple ini config loader
README 文档
README
Installation
This library requires PHP 5.3 or later, and is installable and autoloadable via Composer as garoevans/config_loader.
Usage
use Garoevans\ConfigLoader; $config = ConfigLoader('config_directory', 'ini_file_name.ini'); $config->load(); // Gets the ini section called 'db' or returns an empty array $config->get('db', array()); // Gets the value of 'host' from the 'db' section or returns an empty string $config->get('db/host', '');
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-07-17