Download the PHP package phossa/phossa-event without Composer
On this page you can find all versions of the php package phossa/phossa-event. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phossa/phossa-event
More information about phossa/phossa-event
Files in phossa/phossa-event
Package phossa-event
Short Description A event management library for PHP
License MIT
Homepage https://github.com/phossa/phossa-event
Informations about the package phossa-event
phossa-event [ABANDONED]
See new lib at phoole/event Introduction
Phossa-event is an event management library for PHP. It decoupled from any
packages other than the phossa/phossa-shared
. It requires PHP5.4 only.
Installation
Install via the composer
utility.
or add the following lines to your composer.json
Simple EventDispatcher
Simple event dispatching using Phossa\Event\EventDispatcher
-
Simple usage
or use statically (global dispatching)
-
Trigger for limited times
-
Event globbing
-
Detach events
-
Monitoring PHP errors
Execute a callable when PHP error happens.
- Execute a callable when script finishes
Full-fledged EventManager
Complex event management using Phossa\Event\EventManager
with full fledge
support for event listener, event subject, local event manager and global
event manageretc.
-
Event listener
-
Event manager
-
The event-aware subject
-
Combine together
-
Event globbing
Able to listen to all events by using '' or 'event'.
-
Event management for static classes.
The static listener class,
The static subject class to use events,
The static subject class trigger events as follows,
-
Composite event manager
Able to use composite event manager as follows,
-
Immutable event manager
- Shareable event manager, a single copy of global manager and lots of local managers.
Features
-
Supports PHP 5.4+, PHP 7.0+, HHVM.
-
PHP7 ready for return type declarations and argument type declarations.
-
PSR-1, PSR-2, PSR-4 compliant.
- Decoupled packages can be used seperately without the framework.
Dependencies
-
PHP >= 5.4.0
- phossa/phossa-shared >= 1.0.8