devop-core/config

Config service manager

1.1.5 2019-05-15 11:15 UTC

This package is auto-updated.

Last update: 2024-12-17 23:13:51 UTC


README

Description

This library is just proof of concept. > We do NOT recommended the use of production environment.

Provide basic runtime configuration

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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.