PHPackages                             dhii/event-dispatcher-interface - 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. dhii/event-dispatcher-interface

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

dhii/event-dispatcher-interface
===============================

Standard interfaces for event handling.

v0.1.0(4y ago)021.8k↓90%1MITPHPPHP &gt;=7.0

Since Apr 10Pushed 4y agoCompare

[ Source](https://github.com/Dhii/event-dispatcher-interface)[ Packagist](https://packagist.org/packages/dhii/event-dispatcher-interface)[ RSS](/packages/dhii-event-dispatcher-interface/feed)WikiDiscussions 0.2.x Synced 1w ago

READMEChangelog (3)Dependencies (1)Versions (6)Used By (1)

Event Dispatcher
================

[](#event-dispatcher)

[![Continuous Integration](https://github.com/Dhii/event-dispatcher-interface/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/Dhii/event-dispatcher-interface/actions/workflows/continuous-integration.yml)[![Latest Stable Version](https://camo.githubusercontent.com/f7ee35bc7ba402f9c9916ce2d0c182fb1b88c051f21b830a6d713059c1c33ac2/68747470733a2f2f706f7365722e707567782e6f72672f646869692f6576656e742d646973706174636865722d696e746572666163652f76657273696f6e)](https://packagist.org/packages/dhii/event-dispatcher-interface)[![Latest Unstable Version](https://camo.githubusercontent.com/dea10f7657d6081dc5d1e1964b38bb658a20d7573ff25212b52bebd4904794e6/68747470733a2f2f706f7365722e707567782e6f72672f646869692f6576656e742d646973706174636865722d696e746572666163652f762f756e737461626c65)](//packagist.org/packages/dhii/event-dispatcher-interface)

Enhancements to PSR-14.

Details
-------

[](#details)

This is a fork of the original [event-dispatcher](https://github.com/php-fig/event-dispatcher/) PSR package. The aim was to make it compatible with PHP 7.0, but now this package has evolved and is instead aimed to enhance the interfaces of [PSR-14](https://www.php-fig.org/psr/psr-14/), which this package is fully compatible with.

### Enhancements

[](#enhancements)

The following interfaces *extend* the existing PSR-14 spec in order to provide interop for working with name-based events, e.g. in event models where an event is identified by its name rather than class, such as in WordPress.

- `AddListenerCapableInterface` allows adding a listener to an event identified by name, with priority.
- `RemoveListenerCapableInterface` allows removing a listener by name and priority.

### Shadows

[](#shadows)

The interfaces that simply *shadow* PSR-14 interfaces without changing anything are deprecated, namely:

- `EventDispatcherInterface`;
- `IsPropagationStoppedCapableInterface`;
- `ListenerProviderInterface`.

These will likely be removed in a future version, because they are redundant due to the new PHP 7.2 requirement allowing all the features of PSR-14. They are kept here in order to avoid breaking dependants that use them.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.8% 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 ~104 days

Total

5

Last Release

1812d ago

PHP version history (2 changes)v0.1.0-alpha1PHP &gt;=7.0

v0.2.0-alpha1PHP ^7.2 | ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1894e91b32c9f80d8f30a42d360af6983a507f1cf2c621b7c9a0a0de14e011c5?d=identicon)[XedinUnknown](/maintainers/XedinUnknown)

---

Top Contributors

[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (63 commits)")[![Crell](https://avatars.githubusercontent.com/u/254863?v=4)](https://github.com/Crell "Crell (23 commits)")[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (12 commits)")[![gnumoksha](https://avatars.githubusercontent.com/u/696797?v=4)](https://github.com/gnumoksha "gnumoksha (3 commits)")[![Jean85](https://avatars.githubusercontent.com/u/6729988?v=4)](https://github.com/Jean85 "Jean85 (1 commits)")

---

Tags

eventinterop-standardpsreventspsr-14

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dhii-event-dispatcher-interface/health.svg)

```
[![Health](https://phpackages.com/badges/dhii-event-dispatcher-interface/health.svg)](https://phpackages.com/packages/dhii-event-dispatcher-interface)
```

###  Alternatives

[psr/event-dispatcher

Standard interfaces for event handling.

2.3k618.8M865](/packages/psr-event-dispatcher)[doctrine/event-manager

The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.

6.1k501.1M115](/packages/doctrine-event-manager)[laminas/laminas-eventmanager

Trigger and listen to events within a PHP application

1.0k69.8M225](/packages/laminas-laminas-eventmanager)[simshaun/recurr

PHP library for working with recurrence rules

1.6k15.7M40](/packages/simshaun-recurr)[crell/tukio

A robust, stand-alone PSR-14 event dispatcher implementation.

112183.8k13](/packages/crell-tukio)[fig/event-dispatcher-util

Useful utility classes and traits for implementing the PSR events standard

27423.2k19](/packages/fig-event-dispatcher-util)

PHPackages © 2026

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