2017 © Pedro Peláez
 

library alert

Event loops for event-driven/async PHP

image

medehghani/alert

Event loops for event-driven/async PHP

  • Thursday, July 16, 2015
  • by medehghani
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Alert

Alert provides native and libevent event reactors for powering event-driven PHP applications and servers., (*1)

WHY?

Buffer and event-emmitter abstractions -- though user-friendly -- are unfortunately slow in userland. Performant PHP servers cannot compete (in terms of speed) with the likes of Node.js where such features are compiled. Alert eschews such features and provides only non-blocking IO and timer events to avoid enforcing OOP slowness on the overlaid application. It's a stripped down, no-frills event reactor without a learning curve that "just works.", (*2)

FEATURES

Alert adds the following functionality to PHP's non-blocking IO space:, (*3)

  • Pausing/resuming individual timers or stream IO observers
  • Assigning multiple watchers for individual streams

DEPENDENCIES

  • PHP 5.4+
  • (optional) PECL libevent for faster evented execution and high-volume descriptor reactions. Windows libevent extension DLLs are available here

INSTALLATION

Git:
$ git clone https://github.com/rdlowrey/alert.git
Manual Download:

Manually download from the tagged release section., (*4)

Composer:
$ php composer.phar require rdlowrey/alert:0.3.*

The Versions

16/07 2015

dev-master

9999999-dev https://github.com/medehghani/alert

Event loops for event-driven/async PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Mehdi Dehghani

events async non-blocking libevent