1
0
mirror of https://github.com/danog/amp.git synced 2024-11-26 20:15:00 +01:00
Go to file
2014-03-06 09:49:36 -05:00
examples Initial release commit 2013-08-07 00:17:57 -04:00
src/Alert Code formatting changes 2014-02-23 16:26:28 -05:00
test/unit Fixed potential PHP_INT_MAX watcher ID overwrite 2013-11-29 13:40:34 -05:00
.gitignore Initial release commit 2013-08-07 00:17:57 -04:00
autoload.php Initial release commit 2013-08-07 00:17:57 -04:00
CHANGELOG.md Added optional onStart callback to Reactor::run() 2014-01-20 13:27:44 -05:00
composer.json Add a branch alias to composer.json 2014-01-16 22:23:16 +01:00
CONTRIBUTORS.md Bumped LICENSE year, added CONTRIBUTORS.md 2014-03-06 09:49:36 -05:00
LICENSE Bumped LICENSE year, added CONTRIBUTORS.md 2014-03-06 09:49:36 -05:00
phpunit.xml Initial release commit 2013-08-07 00:17:57 -04:00
README.md Updated README 2013-12-02 11:21:16 -05:00

Alert

Alert provides native and libevent event reactors for powering event-driven PHP applications and servers.

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."

FEATURES

Alert adds the following functionality to PHP's non-blocking IO space:

  • 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.

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