1. Go to this page and download the library: Download phower/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/ */
// always refer same key
echo $config->get('user_name'); // 'Pedro'
echo $config->get('userName'); // 'Pedro'
echo $config->get('USER-NAME'); // 'Pedro'
echo $config->get('username'); // 'Pedro'
// same applies when using different methods of example above
// 1. create instance with read-only mode set to false
$config = new Config(er creation
$config = new Config(
// 1. create instance with allow-override mode set to true
$config = new Config(e after creation
$config = new Config(
// create empty config instance with read-only set to FALSE
$config = new Config([], false);
// set some keys
$config->set('host', 'example.org')
->set('email', '[email protected]')
->set('user_name', 'Pedro')
->set('password', 'Secre7!#@');
// remove one key
$config->remove('user_name');