topthink/think-yaconf

Yaconf support for thinkphp

v1.0 2019-05-21 08:36 UTC

This package is auto-updated.

Last update: 2024-04-21 19:55:09 UTC


README

安装

composer require topthink/think-yaconf

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

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

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

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