wujunxiong 4725452b86 初始版本提交 2 anos atrás
..
src 4725452b86 初始版本提交 2 anos atrás
tests 4725452b86 初始版本提交 2 anos atrás
README.md 4725452b86 初始版本提交 2 anos atrás
composer.json 4725452b86 初始版本提交 2 anos atrás

README.md

config

存取配置

##安装方法

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();