PHP code example of devop-core / config
1. Go to this page and download the library: Download devop-core/config library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
devop-core / config example snippets
php
use DevOp\Core\Config;
config.php'];
$environment = 'prod';
$params = ['predefined' => 'static_value'];
$config = new Config($resources, $environment, $params);
var_dump([$config->all(), $config->get('conf1')]);