PHPackages                             entropyphp/eventdispacher - 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. entropyphp/eventdispacher

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

entropyphp/eventdispacher
=========================

Event system manager

1.0.6(10mo ago)01843MITPHPPHP ^8.1 || ^8.2 || ^8.3 || ^8.4CI passing

Since Jul 29Pushed 10mo agoCompare

[ Source](https://github.com/Entropyphp/eventdispatcher)[ Packagist](https://packagist.org/packages/entropyphp/eventdispacher)[ RSS](/packages/entropyphp-eventdispacher/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (5)Versions (5)Used By (3)

eventdispatcher
===============

[](#eventdispatcher)

[![Latest Stable Version](https://camo.githubusercontent.com/2107e404c029d927d7bfea31c367e5b216dc3a358696421ff52f89028a739f24/687474703a2f2f706f7365722e707567782e6f72672f656e74726f70797068702f6576656e746469737061636865722f76)](https://packagist.org/packages/entropyphp/eventdispacher)[![Total Downloads](https://camo.githubusercontent.com/0c332ffa8559094238de0fa4cdb952d0e3122c520980813151755eede4064adc/687474703a2f2f706f7365722e707567782e6f72672f656e74726f70797068702f6576656e746469737061636865722f646f776e6c6f616473)](https://packagist.org/packages/entropyphp/eventdispacher)[![Latest Unstable Version](https://camo.githubusercontent.com/0841ddd9cd98863297efa31a3141bf6392923eeb42b45efea7a9e6a21f29921d/687474703a2f2f706f7365722e707567782e6f72672f656e74726f70797068702f6576656e746469737061636865722f762f756e737461626c65)](https://packagist.org/packages/entropyphp/eventdispacher)[![License](https://camo.githubusercontent.com/74698ba89dcc6896b8e53cef39457f873ae04cb43301e77dfb89dd5762b5a570/687474703a2f2f706f7365722e707567782e6f72672f656e74726f70797068702f6576656e746469737061636865722f6c6963656e7365)](https://packagist.org/packages/entropyphp/eventdispacher)[![PHP Version Require](https://camo.githubusercontent.com/34fa2099885eae0b44ad2bfc8ced244b9d095564530da4ace4c059e42d5c26bd/687474703a2f2f706f7365722e707567782e6f72672f656e74726f70797068702f6576656e746469737061636865722f726571756972652f706870)](https://packagist.org/packages/entropyphp/eventdispacher)[![Coverage Status](https://camo.githubusercontent.com/f63da45d4a33749cce7c0babe8a0c9ecde0e69c94fa5703fb066c0a4bc9e635b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f456e74726f70797068702f6576656e74646973706174636865722f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/Entropyphp/eventdispatcher?branch=main)

Psr14 Event Dispatcher

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

[](#installation)

```
composer require entropyphp/eventdispatcher
```

Subscribe to this dispatcher
----------------------------

[](#subscribe-to-this-dispatcher)

The array keys are event names and the value can be:

The method name to call (priority defaults to 0)
The priority (default \_\_invoke class method)
The eventName (default \_\_invoke class method) (priority defaults to 0)
An array composed of the method name to call and the priority

For instance:

```
 ['eventName' => 'methodName'] //default priority 0
 ['eventName' => ListenerPriority::HIGH] //default __invoke method
 ['eventName'] //default __invoke method with default priority 0
 ['eventName' => ['methodName', ListenerPriority::HIGH]] //methodName with high priority
```

Example
-------

[](#example)

```
use Entropy\Event\EventSubscriberInterface;
use League\Event\ListenerPriority;
use Entropy\Event\EventDispatcher;

class MyListener implements EventSubscriberInterface
{
    public function __invoke(RequestEvent $event)
    {
        // Handle the event
    }

    public static function getSubscribedEvents(): array
    {
        return [
            RequestEvent::NAME => ListenerPriority::HIGH
        ];
    }
}

$dispatcher = new EventDispatcher($callableResolver);
$dispatcher->addSubscribe(MyListener::class);
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance54

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

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 ~8 days

Total

4

Last Release

315d ago

PHP version history (2 changes)v1.0.3PHP &gt;=8.1

1.0.4PHP ^8.1 || ^8.2 || ^8.3 || ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/222257181?v=4)[EntropyPHP](/maintainers/Entropyphp)[@Entropyphp](https://github.com/Entropyphp)

---

Top Contributors

[![willy68](https://avatars.githubusercontent.com/u/34144331?v=4)](https://github.com/willy68 "willy68 (23 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/entropyphp-eventdispacher/health.svg)

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

###  Alternatives

[moodle/moodle

Moodle - the world's open source learning platform

7.2k88.5k88](/packages/moodle-moodle)[infinum/eightshift-libs

WordPress libs developed by Eightshift team to use in modern WordPress.

63125.5k3](/packages/infinum-eightshift-libs)[dapr/php-sdk

Dapr Implementation in PHP

74100.5k6](/packages/dapr-php-sdk)[macfja/phar-builder

12311.9k11](/packages/macfja-phar-builder)[paulredmond/html-to-amp

A PHP Library to Convert HTML to AMP HTML

6826.1k](/packages/paulredmond-html-to-amp)[refinery29/league-lazy-event

Provides a LazyListener for use with league/event which allows for lazy fetching of actual listeners.

1423.3k](/packages/refinery29-league-lazy-event)

PHPackages © 2026

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