reaway/think-config

think config

Maintainers

Package info

github.com/reaway/think-config

pkg:composer/reaway/think-config

Statistics

Installs: 10

Dependents: 7

Suggesters: 0

Stars: 0

Open Issues: 0

v8.0.0 2026-03-08 12:48 UTC

This package is auto-updated.

Last update: 2026-03-08 12:50:54 UTC


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