reaway / think-config
think config
v8.1.1
2025-01-05 03:59 UTC
Requires
- php: >=8.0
- ext-json: *
- reaway/think-container: ^8.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');