fiber-interop

AMPHP

AMPHP is a collection of non-blocking PHP libraries; amphp/amp 3 is built on fibers and the Revolt event loop.

AMPHP project site · adapter: fiber-interop/amp

composer require fiber-interop/amp

Conformance and test status

Conformance examples (of 25)25/25
Adapter unit tests22 tests, 39 assertions, OK
CIThe conformance numbers come from the site's daily CI run (conformance.json, PHP 8.4.27, 2026-11-11)
SkippedNone in the conformance suite

Differences

The in-place wait for a foreign fiber reads Revolt driver internals by reflection, as the Revolt adapter does, so it is tied to Revolt 1.x.

Beyond the contract

Fully conformant (25/25). Documented: Revolt has no hook that runs when the loop hands control to user code, so the adapter installs a decorating driver via EventLoop::setDriver() to call fiber_interop\scope\activate(). A scope or resume hook in Revolt would replace the decorator. Probes scope-api.php and scope-loop.php pass; scope-loop fails if the decorator is removed.

All runtimes · Conformance matrix