sabre/event

April 27, 2026 ยท View on GitHub

A lightweight library for event-based development in PHP.

This library provides the following event-based concepts:

  1. EventEmitter.
  2. Promises.
  3. An event loop.
  4. Co-routines.

Full documentation can be found on the website.

Installation

Make sure you have composer installed, and then run:

composer require sabre/event "^6.1"

This package requires PHP 8.2.

Build status

Build Status

releaseminimum PHP version
masterPHP 8.2
6.0PHP 7.4
5.1PHP 7.1

Questions?

Open a ticket on GitHub.

Made at fruux

This library is being developed by fruux. Drop us a line for commercial services or enterprise support.