1. Go to this page and download the library: Download chonla/cfg 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/ */
chonla / cfg example snippets
$conf = Config::load('config.json');
$conf = new Config('config.json');
// Get value using key
$debug = $config->get('debug');
// Get value using nested key
$secret = $config->get('security.secret');
// Get a value with a fallback
$ttl = $config->get('app.timeout', 3000);