PHPackages                             dragonrun1/event-mediator - 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. dragonrun1/event-mediator

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

dragonrun1/event-mediator
=========================

A general event mediator (dispatcher) which has minimal dependencies so it is easy to drop in and use.

2.0.0(9y ago)43441GPL-2.0PHPPHP &gt;=7.0, &lt;7.2

Since Jan 7Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (3)Used By (1)

Event-Mediator
==============

[](#event-mediator)

[![SensioLabsInsight](https://camo.githubusercontent.com/236f38faf00db535fc72efdb84fc289b7cbc1cd38bdfd1af21d061d240e626a9/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f30616335356437622d306539372d346336342d393461622d3135343631646132366239382f6269672e706e67)](https://insight.sensiolabs.com/projects/0ac55d7b-0e97-4c64-94ab-15461da26b98)

Travis-ci: [![Build Status](https://camo.githubusercontent.com/73d909afda177cd705f8c0f7ab32f71b2714415f1842c57467066b71ea57d431/68747470733a2f2f7472617669732d63692e6f72672f447261676f6e72756e312f6576656e742d6d65646961746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Dragonrun1/event-mediator)
Scrutinizer-ci: [![Scrutinizer Code Quality](https://camo.githubusercontent.com/7c475ede58d91e8d472d551fd2caca10d479d0a5218e22b5a683293df42008fb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f447261676f6e72756e312f6576656e742d6d65646961746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Dragonrun1/event-mediator/?branch=master)
Coveralls: [![Coverage Status](https://camo.githubusercontent.com/2c908a469ae777e3849b6825278e67e3b9369a1da47dbef2ebfdba40e676f6d2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f447261676f6e72756e312f6576656e742d6d65646961746f722f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/github/Dragonrun1/event-mediator?branch=master)

A general event mediator (dispatcher) with minimal dependencies so it is easy to drop in and use.

Installing
----------

[](#installing)

The recommended way to install Event-Mediator is using [Composer](https://getcomposer.org/) from [Packagist](https://packagist.org/) with:

`composer require dragonrun1/event-mediator`

You can also get it as a [zip file](https://github.com/Dragonrun1/event-mediator/archive/master.zip) from [GitHub](https://github.com/Dragonrun1/event-mediator).

Licensing
---------

[](#licensing)

Licensing information can be found in the [LICENSE](LICENSE) file.

Introduction
------------

[](#introduction)

Most people might know event mediator as an event dispatcher instead and both names would have worked. The reason I choose to call it a mediator is it follows the [mediator](https://en.wikipedia.org/wiki/Mediator_pattern) pattern. For those of you that are familiar with Symfony 2 and it's [EventDispatcher](http://symfony.com/doc/current/components/event_dispatcher/index.html)component then Event Mediator started out as basically a drop in replace for it without the (IMHO) huge dependence overhead often seen with Symfony components. Event Mediator has since grown into something better since then I think.

To get a better understanding about Event-Mediator and how you might use it check out [Understanding Event-Mediator](docs/UnderstandingEventMediator.md)

Changes
-------

[](#changes)

- Started new 2.0-dev branch with many BC breaking changes.
- The 1.0 series is now end of life and all application developers should update to newer 2.0 versions ASAP. If your code only used the listener methods the move should be easy with few changes needed. If application uses any of the subscriber stuff you will need to update the returned event array to reflect the new expected format.

For a more complete understand of the changes refer to the commit messages and new code.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Total

3

Last Release

3623d ago

Major Versions

1.0.1 → 2.0.02016-07-31

PHP version history (3 changes)1.0.0PHP &gt;=5.4.1

1.0.1PHP &gt;=5.4.1, &lt;7.2

2.0.0PHP &gt;=7.0, &lt;7.2

### Community

Maintainers

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

---

Top Contributors

[![Dragonrun1](https://avatars.githubusercontent.com/u/1431541?v=4)](https://github.com/Dragonrun1 "Dragonrun1 (101 commits)")

### Embed Badge

![Health badge](/badges/dragonrun1-event-mediator/health.svg)

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

###  Alternatives

[oat-sa/tao-core

TAO core extension

66143.7k121](/packages/oat-sa-tao-core)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

74149.4k30](/packages/jaxon-php-jaxon-core)[ckfinder/ckfinder-laravel-package

CKFinder 3 package for Laravel

160527.7k67](/packages/ckfinder-ckfinder-laravel-package)[ckfinder/ckfinder-symfony-bundle

CKFinder bundle for Symfony

42454.3k](/packages/ckfinder-ckfinder-symfony-bundle)[inpsyde/wp-app-container

DI Container and related tools to be used at website level.

41275.1k](/packages/inpsyde-wp-app-container)[rockettheme/toolbox

RocketTheme Toolbox Library

22540.5k5](/packages/rockettheme-toolbox)

PHPackages © 2026

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