This package ships with a simple dispatcher, and a listener provider which can be populated during
runtime. The StoppableEventTrait
allows for easy usage when a task can be interrupted.
Some example events for the tests can be found in examples/
.
Play around by calling composer test
and have a look at the examples to build your
own PSR-14 implementation. It's fairly straightforward.
- It is based on PHP 7.2+, thus no marker interface is needed, as we deal with PHP's
simple type
object
. - No more identification of Events based on
string
other any kind ofgetName()
of event objects. - Do-it-yourself for the listener provider, build the one you need.
MIT
Benni Mack, 2018-2019