bedrest / events
A simple event manager and dispatcher which supports annotations.
This package's canonical repository appears to be gone and the package has been frozen as a result.
Requires
- php: >=5.3.0
- doctrine/common: >=2.1.0
This package is not auto-updated.
Last update: 2021-05-28 21:07:18 UTC
README
Overview
BedRest\Events provides a simple event management and dispatch system for PHP 5.3. It provides listener registration mechanisms through PHP interfaces and docblock annotations, along with support for event propagation control and event namespacing (similar to jQuery) for fine-grained control of the event dispatch process.
Installation
Composer is used for package and dependency management. The only dependency is Doctrine Common, used for annotation reading.
If you use Composer in the project you want to use BedRest\Events in, simply add a line into your composer.json file.
{ ... "require": { "bedrest/events": "dev-master" }, ... }
Usage
The best way to see all the use cases for the library is to just look at the test suite. Further documentation will appear here over time.