PHP Classes

Event Emitter: Register handlers and dispatch named events

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 64 All time: 9,986 This week: 342Up
Version License PHP version Categories
event-state 1.0Public Domain5PHP 5, Language
Description Author

This class can register handlers and dispatch named events.

It can register handlers objects and functions that will be called when a given event is triggered.

The class can also dispatch a given named event by calling all the functions of handler objects that were registered for that event.

This class is a conversion of npm event-state module to PHP.

Picture of Till Wehowski
  Performance   Level  
Name: Till Wehowski <contact>
Classes: 27 packages by
Country: Germany Germany
Innovation award
Innovation award
Nominee: 9x

  Files folder image Files  
File Role Description
Accessible without login Plain text file EventEmitter Class class file
Accessible without login Plain text file Test.php Example Example

Downloadevent-state-2017-03-23.zip 2KB
Downloadevent-state-2017-03-23.tar.gz 2KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
$Event.$Iterator Download .zip .tar.gz Base class Required
 Version Control Unique User Downloads Download Rankings  
 0%
Total:64
This week:0
All time:9,986
This week:342Up
For more information send a message to info at phpclasses dot org.