qwant50/config
Composer 安装命令:
composer require qwant50/config
包简介
Jazz framework config component
README 文档
README
ITCourses framework config component
Installation
The preferred way to install this ITCourses framework config component is through composer.
Either run
php composer.phar require "qwant50/config"
or add
"qwant50/config": "~3.*.*"
to the require section of your composer.json.
##Usage
####get all data (php | ini | yaml formats). Result file name to config file must be /path/to/config/development or /path/to/config/production
$config = new Config('/path/to/configs'); $allConfigs = $config->getData();
####get component's data
$config = new Config('/path/to/configs'); $data = $config->getData($fullFileName); var_dump($config->getBasePath()); var_dump($data);
####save configuration data (support only '.php' file)
into a file with $key filename
$config->saveConfig($key);
or into a file with $fullFileName where $fullFileName it's a fileName + .php as extension
$config->saveConfig($key, $fullFileName);
统计信息
- 总下载量: 40
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-08