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: 10,242 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: 29 packages by
Country: Germany Germany
Age: 44
All time rank: 108469 in Germany Germany
Week rank: 578 Up30 in Germany Germany Up
Innovation award
Innovation award
Nominee: 11x

  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:10,242
This week:342Up