devop-core / config
Config service manager
1.1.5
2019-05-15 11:15 UTC
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ^6
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.