1. Go to this page and download the library: Download yongtiger/yii2-setting 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/ */
///Default value
$mySetting = \yongtiger\setting\Setting::get('not-exist-category', 'not-exist-name', 'default-value');
///Return 'default-value' if no exist setting category or key
$mySettingArray = \yongtiger\setting\Setting::setting; ///get the current setting array
\yongtiger\setting\Setting::setting = $mySettingArray; ///dynamically set a setting array