PHP code example of bemang / config-system
1. Go to this page and download the library: Download bemang/config-system 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/ */
bemang / config-system example snippets
use bemang\Config;
$config = Config::getInstance(); //For get single instance
$config->define('test', 'hello'); //For define key
$config->get('test'); //For get key
$config->define([
'test' => 123,
'test3' => ['Jean', 'Yves']
]); //Define multiple key
$config->has('test'); //Verify a key
$config->delete('test'); //Delete a key