devop-core/config
Composer 安装命令:
composer require devop-core/config
包简介
Config service manager
README 文档
README
Description
This library is just proof of concept. > We do NOT recommended the use of production environment.
Provide basic runtime configuration
Installation
Package is available on Packagist, you can install it using Composer.
composer require devop-core/config
Usage
<?php use DevOp\Core\Config; include_once '../vendor/autoload.php'; $resources = [__DIR__ . '/config/config.php']; $environment = 'prod'; $params = ['predefined' => 'static_value']; $config = new Config($resources, $environment, $params); var_dump([$config->all(), $config->get('conf1')]);
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
vendor/bin/phpunit
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-06