|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2016-07-19 (9 days ago) ||Not enough user ratings||Total: 190 This week: 8||All time: 7,843 This week: 110|
This package allows to emit and listen to events using a mediator object.
It provides a class that implements the mediator design pattern to perform operations with objects of classes that abstract emitted events and listeners that process those events when they happened.
Currently it can add a listener to a given event by name, or add a subscriber, get the listeners a given event name, check if a given event name has listeners, remove a listener to a given event, remove a subscriber and trigger a event.
Prize: One downloadable e-book of choice by O'Reilly
|The mediator pattern allows applications to manage interaction between different types of objects using a single object.
This package can manage events and listeners using a mediator design pattern object to manage all the involved types of objects.
A general event mediator (dispatcher) with minimal dependencies so it is easy to drop in and use.
The recommended way to install Event-Mediator is using Composer from
composer require dragonrun1/event-mediator
You can also get it as a zip file from
Licensing information can be found in the LICENSE file.
Most people might know event mediator as an event dispatcher instead and both names work. The reason I choose to call it
a mediator is it follows the mediator pattern. For those of you that
are familiar with Symfony 2 and it's
EventDispatcher component then Event Mediator
is basically a drop in replace for it without the huge dependence overhead (IMHO) often seen with Symfony components.
To get a better understanding about Event-Mediator and how you might use it check out
||Applications that use this package
Yet Another Php Eve Api Library Next Generation
If you know an application of this package, send a message to the author to add a link here.