PHP code example of felicity-php / felicity-config
1. Go to this page and download the library: Download felicity-php/felicity-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/ */
felicity-php / felicity-config example snippets
use felicity\config\Config;
Config::set('myConfig', 'myVal');
Config::set('myArrayConfig.MyArrayKey.MyOtherKey', 'myVal')
->setItem('MyOtherConfig', 'MyOtherVal');
use felicity\config\Config;
$myConfig = Config::get('myConfig', 'defaultVal');
$myOtherConfig = Config::get('MyConfigArray.MyConfigKey');