easyswoole/config

easyswoole component

1.0.7 2020-07-13 07:57 UTC

This package is auto-updated.

Last update: 2020-07-13 08:47:53 UTC


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