PHPackages                             mhs/think-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. mhs/think-addons

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

mhs/think-addons
================

thinkphp 6 addons

05PHP

Since Jun 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mhongshan/think-addons)[ Packagist](https://packagist.org/packages/mhs/think-addons)[ RSS](/packages/mhs-think-addons/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

think-addons
------------

[](#think-addons)

```
# config.php / addons.php
return [
    'autoload' => true,
    'addons_name' => 'addons',
    'hooks' => [
        'event' => 'listener',
        'event1' => ['listener']
    ],
    'binds' => [
        'name' => 'callable'
    ],
    'services' => [
        'service1'
    ],
    'routes' => [
        'apps' => [
             'app1' => [
                ['rule'=>'', 'route'=>'', 'method'=>'','name'=>'','options'=>[], 'pattern'=>[]]
             ]
        ],
        'plugins' => [

        ]
    ],
    'route_domain' => [ // 路由域名
        'domain1' => ['apps'=>['demo'], 'plugins'=>['test']], // app/demo,plugins/test插件路由都是domain1域名
    ],
    'route_alias' => [ // 路由别名，用于重写路由，当插件路由与其他路由冲突时可以重写，原插件路由失效
        'name' => 'rule',
    ],
];
```

默认事件

```
addonsInit: 插件初始化时事件
addonsMiddleware: 插件公共中间件事件
addonsBegin: 插件请求开始
addonModuleInit: 插件开始
addonsActionBegin: 调用方法开始

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38444?v=4)[Mutually Human](/maintainers/mhs)[@mhs](https://github.com/mhs)

---

Top Contributors

[![sqmt](https://avatars.githubusercontent.com/u/38343302?v=4)](https://github.com/sqmt "sqmt (5 commits)")

### Embed Badge

![Health badge](/badges/mhs-think-addons/health.svg)

```
[![Health](https://phpackages.com/badges/mhs-think-addons/health.svg)](https://phpackages.com/packages/mhs-think-addons)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
