PHP code example of easyswoole / config
1. Go to this page and download the library: Download easyswoole/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/ */
easyswoole / config example snippets
composer
$arr=['aa'=>'123'];
$config=new \EasySwoole\Config\SplArrayConfig('dev');
$config->load($arr);
$config->getConf('aa');
$config->setConf('bb',234);
$arr2=['abc'=>'easyswoole'];
$config->merge($arr2);
$config->clear();
$arr=['aa'=>'123'];
$config=new \EasySwoole\Config\TableConfig('dev');
$config->load($arr);
$config->getConf('aa');
$config->setConf('bb',234);
$arr2=['abc'=>'easyswoole'];
$config->merge($arr2);
$config->clear();