Revolt
Revolt is a PHP event loop built on fibers; AMPHP, and other libraries, run on it.
Revolt project site · adapter: fiber-interop/revolt
composer require fiber-interop/revolt
Conformance and test status
| Conformance examples (of 25) | 25/25 |
|---|---|
| Adapter unit tests | 25 tests, 38 assertions, OK |
| CI | The conformance numbers come from the site's daily CI run (conformance.json, PHP 8.4.27, 2026-11-11) |
| Skipped | None in the conformance suite |
Differences
The in-place wait for a foreign fiber drives the loop by hand and reads a private closure of the driver by reflection, so it is tied to Revolt 1.x internals. Nested in-place waits across two foreign fibers are not supported.
Beyond the contract
Fully conformant (25/25). Documented: Suspension::suspend() calls Fiber::suspend() on a foreign fiber and EventLoop::run() throws inside any fiber, so the adapter works around both by reflection. A public way to run or tick the loop from a fiber the loop does not own would remove the reflection. Scope switching: see the AMPHP page (the driver has no hook; the adapter README documents its approach).