You must be logged in to see that page. × Close
Hello! Forrst is a community where developers and designers improve their craft.   Request an Invite

PHP Event Processing Engine v0.1.1

https://github.com/nwhitingx/Prggmr/tree/v0.1.1

prggmr

Nickolas Whiting

12 months ago · 1,402 views

Hey Everyone!

I just released the latest version of prggmr, the event processing engine written in PHP. This is the second release of the library and is an almost complete rewrite.

Just to cover a few of the changes

  • Event processing engine has been completely rewritten drastically reducing the engine overhead.
  • Signals were introduced, which allows complex event signaling ( not to be confused with complex event processing ... yet ) and drastically simplifies chaining events.
  • Queue's were introduced, introducing integer based priority for event firing and dramatically improving the library performance.
  • Event object has been completely rewritten now serving a single distinct purpose allowing events to become truly state-full and chained.
  • Improved API
  • Unit Testing has been completely re-written covering 99% of the codebase.
  • The entire API consists of 2 single functions.
  • Any valid PHP callback can be used as an event.

I'm very excited about this release of the library as it marks the six month milestone of development and introduces new possibilities for event driven programming in PHP!

I have yet to write the full documentation of the library, but as the API consists of only two functions I hope it is easy to grasb.

subscribe

Subscribes a callback to an event signal.

subscribe($signal, $subscription, $identifier = null, $priority = null)

fire

Fires of an event signal and returns the executed event.

fire($signal, $vars = null, $event = null)

Happy Coding, Cheers!

Tagged: engine-engine events php php eda php event framework
Comments are only visible to Forrst members. Log in or Request an invite.
3 new notifications