PHPackages                             yfcmf/tp5-addons - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yfcmf/tp5-addons

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yfcmf/tp5-addons
================

addons package for thinkphp5

1.0.2(9y ago)5568[2 issues](https://github.com/rainfer520/tp5-addons/issues)Apache-2.0PHPPHP &gt;=5.4.0

Since Jan 22Pushed 9y ago2 watchersCompare

[ Source](https://github.com/rainfer520/tp5-addons)[ Packagist](https://packagist.org/packages/yfcmf/tp5-addons)[ Docs](https://github.com/rainfer520/tp5-addons)[ RSS](/packages/yfcmf-tp5-addons/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (2)Versions (4)Used By (0)

tp5-addons
==========

[](#tp5-addons)

The ThinkPHP5 Addons Package

安装
--

[](#安装)

> composer require yfcmf/tp5-addons

配置
--

[](#配置)

### 公共配置

[](#公共配置)

```
'addons'=>[
	// 可以定义多个钩子
    'testhook'=>'test' // 键为钩子名称，用于在业务中自定义钩子处理，值为实现该钩子的插件，
	// 多个插件可以用数组也可以用逗号分割
]

```

或者在application\\extra目录中新建`addons.php`,内容为：

```
