alonity / config
Alonity 日志记录器
dev-main
2021-07-21 09:32 UTC
Requires
- php: ^7.1
- ext-mbstring: *
This package is auto-updated.
Last update: 2024-09-27 19:44:50 UTC
README
配置组件
安装
composer require alonity/config
示例
use alonity\config\Config; require('vendor/autoload.php'); $mainConfig = Config::get('main'); // ./vendor/../main.php $value = Config::getValue('main', 'example'); // Like $mainConfig['example'] $load = Config::loader([ 'main', 'Other' => '../../../../configs/other' ]); // Now you can call to config via $load['Other'] or Config::get('Other')