2017 © Pedro Peláez
 

library funnel

Type-hinted event facility for PHP

image

mindplay/funnel

Type-hinted event facility for PHP

  • Thursday, May 14, 2015
  • by mindplay.dk
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

funnel

https://github.com/mindplay-dk/funnel, (*1)

Build Status, (*2)

Scrutinizer Code Quality, (*3)

Code Coverage, (*4)

This is simple event sink (pub/sub) facility for PHP 5.3+ which attempts to improve on the performance and robustness of event facilities in general., (*5)

See "example.php" in the root-folder for an example of how to use this class., (*6)

By using type-hinted closures for event types (classes) as opposed to arbitrary strings (event names) or literal class names or function names as strings, the robustness is greatly improved - a modern IDE (such as Php Storm) can perform meaningful inspections, code can be safely refactored, and you can more easily navigate the code base e.g. by following real, static type-hints., (*7)

A means of optimizing performance is provided, by permitting the use of "proxy" functions for initialization of events to be submitted - loading and constructing an event object can be done conditionally, by "short circuiting" the event when no listeners for that type of event have been registered., (*8)

The Versions

14/05 2015

dev-master

9999999-dev

Type-hinted event facility for PHP

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.3.0

 

The Development Requires

13/01 2015

1.0.1

1.0.1.0

Type-hinted event facility for PHP

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.3.0

 

The Development Requires

23/05 2014

1.0.0

1.0.0.0

Type-hinted event facility for PHP

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.3.0