topthink/think-yaconf

Yaconf support for thinkphp

v1.0.1 2024-08-07 07:20 UTC

This package is auto-updated.

Last update: 2024-12-07 08:09:11 UTC


README

安装

composer require topthink/think-yaconf

然后在app目录下面的provider.php中配置

'think\Config'	=>	'think\Yaconf',

你可以指定Yaconf的某个文件作为项目的统一配置文件

think\facade\Config::setYaconf('file_name');