topthink/think-yaconf

为 thinkphp 提供的 Yaconf 支持

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

This package is auto-updated.

Last update: 2024-09-07 07:43:40 UTC


README

安装

composer require topthink/think-yaconf

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

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

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

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