Dev.to
7/15/2026

The original title is "Fibers Plus the Polling API: What Async PHP Actually Looks Like Now"
Original: Fibers Plus the Polling API: What Async PHP Actually Looks Like Now
Short summary
The PHP Polling API RFC passed 33-1 and is merged to master, providing the missing native primitive for efficient file-descriptor readiness checks. The article clarifies that Fibers provide pausable functions while the Polling API provides the underlying mechanism to know when to resume them. A toy scheduler implementation demonstrates how these primitives combine to enable concurrent async I/O in PHP.
- •Polling API provides the native fd-readiness primitive PHP lacked, complementing Fibers (since 8.1)
- •Fibers pause/resume functions; Polling API tells the event loop when to resume them
- •Includes a working MiniScheduler example using Io\Poll\Context with non-blocking sockets
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



