PHPackages                             php-lab/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. php-lab/event

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

php-lab/event
=============

Event dispatcher.

0121PHP

Since Mar 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/php-lab/event)[ Packagist](https://packagist.org/packages/php-lab/event)[ RSS](/packages/php-lab-event/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Event dispatcher
================

[](#event-dispatcher)

[![Build Status](https://camo.githubusercontent.com/6c645c7d4830dcc2b75c7df30e5f6cc6a6eadffe45f8fea54b15e9f9331443b7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d6c61622f6576656e742f6d61737465722e737667)](https://travis-ci.org/php-lab/event)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a48f3e956c7a01937a18319f63862ad401faeafb945cfba567552b5d4aa41ae3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7068702d6c61622f6576656e742e737667)](https://scrutinizer-ci.com/g/php-lab/event/)[![Total Downloads](https://camo.githubusercontent.com/1da61c2a490e4fabb1b47fa1593433ed07f343ebf61dab4de83485050c174df7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d6c61622f6576656e742e737667)](https://packagist.org/packages/php-lab/event)[![License](https://camo.githubusercontent.com/abe307aff23efcfccbdff59dcd4a96691d1824e9edc2cbe7c2719069728288b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7068702d6c61622f6576656e742e737667)](https://packagist.org/packages/php-lab/event)

PhpLab\\Event requires PHP 7.

Usage
-----

[](#usage)

```
use PhpLab\Event\Dispatcher;
use App\Logger;

$this->app = new Dispatcher();

$logger = new Logger();
$this->app->subscribe('payment.error', 'logger', function () use ($logger) {
    $logger->log('error', 'Payment error');
});

$this->app->dispatch('payment.error');
```

License
-------

[](#license)

PhpLab\\Event is licensed under the MIT license.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4481981?v=4)[Yuriy Davletshin](/maintainers/davletshin)[@davletshin](https://github.com/davletshin)

---

Top Contributors

[![davletshin](https://avatars.githubusercontent.com/u/4481981?v=4)](https://github.com/davletshin "davletshin (7 commits)")

### Embed Badge

![Health badge](/badges/php-lab-event/health.svg)

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

###  Alternatives

[saade/filament-adjacency-list

A Filament package to adjacency lists.

9653.4k5](/packages/saade-filament-adjacency-list)[yidashi/yii2-webuploader

yii2-webuploader

111.1k](/packages/yidashi-yii2-webuploader)

PHPackages © 2026

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