PHP Classes

PHP Event based Inheritance Model: Register handlers to process events in a chain

Recommend this page to a friend!
  Info   View files Example   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2023-03-20 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 36 All time: 10,706 This week: 34Up
Version License PHP version Categories
event-based-inherita 1.0MIT/X Consortium ...5PHP 5, Language
Description 

Author

Smoren


Contributor

This package can register handlers to process events in a chain.

It allows the applications to register callback functions that will be called when an event with a given name is triggered.

Multiple callback functions may be registered for the same event.

When an event is triggered, the package will call the last callback function registered to handle that event.

The event handler function that was called may call other callback functions that were registered before to handle the same event.

Innovation Award
PHP Programming Innovation award nominee
March 2023
Number 8
Event processing is an approach that developers can use to connect different parts of an application.

This way, a change in one part can trigger actions in other application parts.

For instance, if a user can push a button on a Web page, the application can use event processing to trigger the actions associated with the application button that the user pushed.

This package implements an inheritance model to process registered events.

This way, the package allows applications to implement event handlers that can process the events or pass the events to another event handling function registered to handle the same event.

Manuel Lemos
Picture of Smoren  Freelight
  Performance   Level  
Name: Smoren Freelight <contact>
Classes: 21 packages by
Country: Russian Federation Russian Federation
Age: 33
All time rank: 3678104 in Russian Federation Russian Federation
Week rank: 10 Up1 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 10x

  Files folder image Files  
File Role Description
Files folder imagesrc (4 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Example Example script

  Files folder image Files  /  src  
File Role Description
  Plain text file EventBus.php Class Class source
  Plain text file EventBusException.php Class Class source
  Plain text file ExampleFactory.php Class Class source
  Plain text file Listener.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:36
This week:0
All time:10,706
This week:34Up