A lightweight library for event-based development in PHP.

This library brings several popular event-based patterns from Javascript to the PHP world. They are simple, 0-dependency and written to be very legible.

The goal is to be as close as their Javascript equivelant as possible, in a way that's also sane for PHP.

  1. EventEmitter, which is a very lightweight "Publish and Subscribe" pattern,
  2. Promises, which is a design pattern to improve chained asynchronous callbacks.
  3. An event loop, aiding you in writing asynchronous PHP code.
  4. Coroutines, to make Promise-heavy code even better.