Login   Register  
PHP Classes
elePHPant
Icontem

PHP Event Dispatcher: Register events and call registered listeners

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (40)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-06-19 (4 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 476 This week: 1All time: 5,417 This week: 1,439Up
Version License PHP version Categories  
event-dispatcher 1.0.0MIT/X Consortium License5.4PHP 5, Language, Design Patterns
Description Author  

This package can register events and call registered listeners.

It can register an event listener by associating a name to a callback function that will be invoked when an event with that name happens.

Event listeners may be registered to handle a group of events defined by a event name pattern.

The event name matching may be defined also by an object that determines if a given event should be handled by the subscribed event handler.

Events are be dispatched by calling the registered event listeners.

Registered event listeners may have an associated priority number so they can be called by the order defined by their priority.

Event listeners callback functions may take parameters that define the context of the event.

Picture of Protung Dragos
Name: Protung Dragos is available for providing paid consulting. Contact Protung Dragos .
Classes: 10 packages by
Country: Germany Germany
Age: 31
All time rank: 343 in Germany Germany
Week rank: 21 Up2 in Germany Germany Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imagesrc (1 directory)
Files folder imagetests (1 directory)
Accessible without login Plain text file .gitattributes Data
Accessible without login Plain text file .gitignore Data
Accessible without login Plain text file composer.json Data
Accessible without login Plain text file LICENSE Data
Accessible without login Plain text file phpunit.xml.dist Data
Accessible without login Plain text file readme.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageWingu (1 directory)

  Files folder image Files  /  src  /  Wingu  
File Role Description
Files folder imageOctopusCore (1 directory)

  Files folder image Files  /  src  /  Wingu  /  OctopusCore  
File Role Description
Files folder imageEventDispatcher (12 files, 2 directories)

  Files folder image Files  /  src  /  Wingu  /  OctopusCore  /  EventDispatcher  
  Files folder image Files  /  src  /  Wingu  /  OctopusCore  /  EventDispatcher  /  EventNameMatcher  
File Role Description
  Plain text file AllNamesMatcher.php Class
  Plain text file EventNameMatcherFactory.php Class
  Plain text file EventNameMatcherInterface.php Class
  Plain text file NameMatcher.php Class
  Plain text file RegexMatcher.php Class
  Plain text file WildcardMatcher.php Class

  Files folder image Files  /  src  /  Wingu  /  OctopusCore  /  EventDispatcher  /  Exceptions  
File Role Description
  Plain text file Exception.php Class
  Plain text file InvalidArgumentException.php Class

  Files folder image Files  /  tests  
File Role Description
Files folder imageWingu (1 directory)

  Files folder image Files  /  tests  /  Wingu  
File Role Description
Files folder imageOctopusCore (1 directory)

  Files folder image Files  /  tests  /  Wingu  /  OctopusCore  
File Role Description
Files folder imageEventDispatcher (1 directory)

  Files folder image Files  /  tests  /  Wingu  /  OctopusCore  /  EventDispatcher  
File Role Description
Files folder imageTests (1 file, 2 directories)

  Files folder image Files  /  tests  /  Wingu  /  OctopusCore  /  EventDispatcher  /  Tests  
File Role Description
Files folder imageIntegration (2 files)
Files folder imageUnit (6 files, 1 directory)
  Accessible without login Plain text file TestCase.php Test

  Files folder image Files  /  tests  /  Wingu  /  OctopusCore  /  EventDispatcher  /  Tests  /  Integration  
File Role Description
  Accessible without login Plain text file EventDispatcherTest.php Test
  Accessible without login Plain text file TestCase.php Test

  Files folder image Files  /  tests  /  Wingu  /  OctopusCore  /  EventDispatcher  /  Tests  /  Unit  
File Role Description
Files folder imageEventNameMatcher (5 files)
  Accessible without login Plain text file EventDispatcherTest.php Test
  Accessible without login Plain text file EventDispatcherTraitTest.php Test
  Accessible without login Plain text file EventTest.php Test
  Accessible without login Plain text file ExceptionEventTest.php Test
  Accessible without login Plain text file SubscriptionTest.php Test
  Accessible without login Plain text file TestCase.php Test

  Files folder image Files  /  tests  /  Wingu  /  OctopusCore  /  EventDispatcher  /  Tests  /  Unit  /  EventNameMatcher  
File Role Description
  Accessible without login Plain text file AllNamesMatcherTest.php Test
  Accessible without login Plain text file EventNameMatcherFactoryTest.php Test
  Accessible without login Plain text file NameMatcherTest.php Test
  Accessible without login Plain text file RegexMatcherTest.php Test
  Accessible without login Plain text file WildcardMatcherTest.php Test

 Version Control Unique User Downloads Download Rankings  
 100%Total:476All time:5,417
 This week:1This week:1,439Up