PHPackages                             yiistack/events - 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. yiistack/events

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

yiistack/events
===============

Yii event dispatcher attributes

01PHP

Since Sep 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/yiistack/events)[ Packagist](https://packagist.org/packages/yiistack/events)[ RSS](/packages/yiistack-events/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](https://github.com/yiistack.png) ](https://github.com/yiistack)

YiiStack Events
===============

[](#yiistack-events)

[![Latest Stable Version](https://camo.githubusercontent.com/bea2ecc50c42b2f9a2db6a688c256250b1d5621c40cbbc48b46027a1d8d1fce6/68747470733a2f2f706f7365722e707567782e6f72672f796969737461636b2f6576656e74732f762f737461626c652e706e67)](https://packagist.org/packages/yiistack/events)[![Total Downloads](https://camo.githubusercontent.com/ade61ffff8ab1227b53ce81a8ccbf13851bca34da69a4ab964e16d29522eb8d8/68747470733a2f2f706f7365722e707567782e6f72672f796969737461636b2f6576656e74732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiistack/events)[![Build status](https://github.com/yiistack/events/workflows/build/badge.svg)](https://github.com/yiistack/events/actions?query=workflow%3Abuild)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0f60bc069552c843351a4d44116fb20d156e5aba593aff41c52b2a8b31c1d30d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f796969737461636b2f6576656e74732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yiistack/events/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/3b608115e674b8ba7e7418ae70b3d56759b77d5781c44256875d2ad8bb48bb24/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f796969737461636b2f6576656e74732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yiistack/events/?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/7a23239e242dd727774e84b753a629b4c3413dbab4cb3db99169f8ac95a3685a/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246796969737461636b2532466576656e74732532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/yiistack/events/master)[![static analysis](https://github.com/yiistack/events/workflows/static%20analysis/badge.svg)](https://github.com/yiistack/events/actions?query=workflow%3A%22static+analysis%22)[![type-coverage](https://camo.githubusercontent.com/019aaecb3dff3786b28ced39d802712fe65434ef11c2a4ee441587d019cdc3e2/68747470733a2f2f73686570686572642e6465762f6769746875622f796969737461636b2f6576656e74732f636f7665726167652e737667)](https://shepherd.dev/github/yiistack/events)

The package provides PHP Attributes for [yiisoft/event-dispatcher](https://github.com/yiisoft/event-dispatcher) that can be used to listen events.

Requirements
------------

[](#requirements)

- PHP 8.0 or higher.

Installation
------------

[](#installation)

The package could be installed with composer:

```
composer require yiistack/events --prefer-dist

```

General usage
-------------

[](#general-usage)

### Unit testing

[](#unit-testing)

The package is tested with [PHPUnit](https://phpunit.de/). To run tests:

```
./vendor/bin/phpunit
```

### Mutation testing

[](#mutation-testing)

The package tests are checked with [Infection](https://infection.github.io/) mutation framework. To run it:

```
./vendor/bin/roave-infection-static-analysis-plugin
```

### Static analysis

[](#static-analysis)

The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:

```
./vendor/bin/psalm
```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

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://www.gravatar.com/avatar/6df37eedfd8233de51e178fd857e54fe816ee7ffaad28cea49736be83e00ed07?d=identicon)[rustamwin](/maintainers/rustamwin)

---

Top Contributors

[![rustamwin](https://avatars.githubusercontent.com/u/16498265?v=4)](https://github.com/rustamwin "rustamwin (8 commits)")

### Embed Badge

![Health badge](/badges/yiistack-events/health.svg)

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

###  Alternatives

[p3k/emoji-detector

Detect and return all emoji found in a string

1461.8M5](/packages/p3k-emoji-detector)[gamez/typed-collection

Type-safe collections based on Laravel Collections

45362.9k](/packages/gamez-typed-collection)[faryshta/yii2-disable-submit-buttons

Yii2 asset to automatically disable submit buttons on Yii2 ActiveForm.

16481.6k](/packages/faryshta-yii2-disable-submit-buttons)[carica/io

Non blocking I/O for PHP

241.1k6](/packages/carica-io)

PHPackages © 2026

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