reaway / think-config
think config
v1.0.1
2022-01-16 09:25 UTC
Requires
- php: >=7.2.0
- ext-json: *
- reaway/think-facade: ^1.0
README
安装
composer require reaway/think-config
用法
use Think\Component\Config\Facade\Config; require __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'; // load $file = __DIR__ . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'cache.php'; Config::load($file, 'cache'); Config::get('cache');