PHPackages                             reaway/think-event - 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. reaway/think-event

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

reaway/think-event
==================

think event

v8.1.1(1y ago)03Apache-2.0PHPPHP &gt;=8.0

Since Jan 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/reaway/think-event)[ Packagist](https://packagist.org/packages/reaway/think-event)[ Docs](https://github.com/reaway/think-event)[ RSS](/packages/reaway-think-event/feed)WikiDiscussions 8.1 Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

think-event
===========

[](#think-event)

安装
--

[](#安装)

```
composer require reaway/think-event
```

用法
--

[](#用法)

```
use Think\Component\Event\Facade\Event;

require __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

// 你可以手动注册一个事件监听
Event::listen('UserLogin', function($user) {
    //
});

// 触发UserLogin事件 用于执行用户登录后的一系列操作
Event::trigger('UserLogin');
```

文档
--

[](#文档)

详细参考 [事件处理](https://www.kancloud.cn/manual/thinkphp6_0/1037492)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance41

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

498d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d342ebe348631bdfbe41ebcd414f0b5fa2334027d413e3543afb301f3503a13f?d=identicon)[reaway](/maintainers/reaway)

---

Top Contributors

[![reaway](https://avatars.githubusercontent.com/u/60423559?v=4)](https://github.com/reaway "reaway (2 commits)")

### Embed Badge

![Health badge](/badges/reaway-think-event/health.svg)

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

###  Alternatives

[zzstudio/think-addons

The ThinkPHP6 Addons Package

1518.6k](/packages/zzstudio-think-addons)[topthink/think-container

PHP Container &amp; Facade Manager

17272.7k28](/packages/topthink-think-container)

PHPackages © 2026

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