PHP Classes

Event Driven: Manage abstract event processing

Recommend this page to a friend!
  Info   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 52%Total: 2,055 This week: 1All time: 1,910 This week: 560Up
Version License PHP version Categories
eventdriven 1.9GNU General Publi...4.3.10Design Patterns
Description 

Author

This package can be used to manage the processing of abstract events that may occuring during the execution of a script.

It implements several abstract classes for processing events and registering event listeners based on the Observer design pattern.

The classes may be extended by scripts to handle application specific concrete event handlers.

Picture of Frédéric Minne
Name: Frédéric Minne <contact>
Classes: 2 packages by
Country: Belgium Belgium
Age: 45
All time rank: 5611 in Belgium Belgium
Week rank: 411 Up3 in Belgium Belgium Down

Details

eventdriven

EventDriven is a PHP Event driven architecture with the following components :

  • EventManager : implements the event queue and registry that dispatch event to the corresponding listeners
  • EventListener : listen to the occurence of a given event type and call a callaback method or function when this event occurs
  • EventDriven : an event driven class that declare event listener to the event manager
  • EventGenerator : a class taht generate events
  • Event : the basic event class

<div> <pre>

 +---------------+
 |EVENT GENERATOR|
 +------+--------+
        |
        |
        |     +-----+                   +------------+
        +-----+EVENT|                   |EVENT DRIVEN|
        |     +-----+                   +-----+------+
        |                                     |
        |                                     |
  +-----+-------+                      +------+-------+
  |EVENT MANAGER+-----------+----------+EVENT LISTENER|
  +-------------+           |          +--------------+
                            |
                         +--+--+
                         |EVENT|
                         +-----+

</pre> </div>

Copyright notice

(see COPYING for more details)


Copyright (c) 2005-2013 Frederic Minne <zefredz@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU LESSER General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

  Files folder image Files  
File Role Description
Files folder imageevent (6 files)
Accessible without login Plain text file COPYING Lic. License
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file sample.event.php Example Sample code for event driven architecture
Accessible without login Plain text file VERSION Doc. version history

  Files folder image Files  /  event  
File Role Description
  Accessible without login Plain text file event.lib.php Aux. Auxiliary script
  Plain text file Event.php Class Class source
  Plain text file EventDriven.php Class Class source
  Plain text file EventGenerator.php Class Class source
  Plain text file EventListener.php Class Class source
  Plain text file EventManager.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:2,055
This week:1
All time:1,910
This week:560Up
 User Ratings  
 
 All time
Utility:65%StarStarStarStar
Consistency:70%StarStarStarStar
Documentation:60%StarStarStarStar
Examples:65%StarStarStarStar
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2412