easyswoole / config
easyswoole component
Installs: 127 980
Dependents: 9
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 5
Open Issues: 0
Requires
- php: >=7.1.0
- easyswoole/spl: ^2.0
Requires (Dev)
- easyswoole/phpunit: ^1.0
- easyswoole/swoole-ide-helper: ^1.2
README
存取配置
##安装方法
composer require easyswoole/config
##使用方法 SplArray 用法
<?php $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();
SwooleTable 用法
<?php $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();