ultra-lite/config-reader
Composer 安装命令:
composer require ultra-lite/config-reader
包简介
README 文档
README
Ultra-Lite Config Reader
An ultra-lightweight config file parser.
Usage
$configReader = new \UltraLite\ConfigReader\ConfigReader; $array = $configReader->getConfigArray('/path/to/file.json');
Error Handling
If there is a problem, it (only) throws an \UltraLite\ConfigReader\Exception\ConfigReaderException of some kind.
Supported File Types
.json, .ini and .php 'return array' files are supported.
To be part of the UltraLite project, it is quite lightweight, but it can be extended to support other file types. Just
come up with your own implementation of \UltraLite\ConfigReader\FileParser:
$customFileParser = new MyXmlFileParser(); $configReader->addFileParser($customFileParser); $array = $configReader->getConfigArray('/path/to/file.xml');
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-06