PHPackages                             ayflying/plugin - 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. ayflying/plugin

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

ayflying/plugin
===============

给php系统增加插件功能

1.0(7y ago)015MITPHPPHP &gt;=7.0

Since Dec 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ayflying/plugin)[ Packagist](https://packagist.org/packages/ayflying/plugin)[ RSS](/packages/ayflying-plugin/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

plugin是一个自动插件类，可以不依赖其他框架在页面中插入钩子
--------------------------------

[](#plugin是一个自动插件类可以不依赖其他框架在页面中插入钩子)

下载
--

[](#下载)

```
composer require ayflying/plugin

```

使用
--

[](#使用)

```
use Ayflying\Plugin;
new Hook(__DIR__.'/plugin');

```

添加钩子
----

[](#添加钩子)

```
Hook::add('ceshi',function(){
    echo '挂载点1';
});

```

运行钩子
----

[](#运行钩子)

```
Hook::listen('ceshi');

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2719d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/02607e50ec56c6135d184a37df841381b3f687b72b66715cf8ea270c04c01b6d?d=identicon)[ayflying](/maintainers/ayflying)

### Embed Badge

![Health badge](/badges/ayflying-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/ayflying-plugin/health.svg)](https://phpackages.com/packages/ayflying-plugin)
```

PHPackages © 2026

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