Config library
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.