Download the PHP package blacksmith-project/event-bus without Composer
On this page you can find all versions of the php package blacksmith-project/event-bus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package event-bus
BlacksmithProject - EventBus
Why ?
In order to improve my skills, I'm doing my own implementation of an EventBus.
Installation
composer require blacksmith-project/event-bus
How to use it ?
- Your events need to implement the empty interface
\BSP\Event
- Your listeners need to implement the interface
\BSP\EventListener
- Extends
\BSP\EventBus
and add in your constructor the listeners.
Please note that there may be multiple listeners to a single event.
You can look for example in the tests/Mock folder.
Now, you only need to inject your EventBus and send Events.
Example:
All versions of event-bus with dependencies
PHP Build Version
Package Version
Requires
blacksmith-project/dr-watson Version
^0.3
The package blacksmith-project/event-bus contains the following files
Loading the files please wait ....