reaway / think-config
think config
v8.0.0
2026-03-08 12:48 UTC
Requires
- php: >=8.0
- ext-json: *
- reaway/think-facade: ^8.0
README
安装
composer require reaway/think-config
用法
use Think\Component\Config\Facade\ConfigFacade; require __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'; // load $file = __DIR__ . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'cache.php'; ConfigFacade::load($file, 'cache'); ConfigFacade::get('cache');