php-standard-library/async
Fiber-based async primitives for PHP: structured concurrency with cooperative multitasking. Run tasks concurrently, manage lifecycles, cancellations, and scopes predictably. Part of PHP Standard Library; docs and guides at php-standard-library.dev.
Adopt when:
Look elsewhere if:
For Executives: "This package lets us write concurrent PHP code like a standard library—no heavy frameworks, just composable tools for async workflows. Think of it as ‘Promises for PHP’ but lightweight: faster development, fewer bugs in I/O-heavy tasks (e.g., APIs, jobs), and easier scaling. It’s a low-risk upgrade for teams already using PHP, with MIT licensing and minimal overhead. Early adopters see 20–50% faster response times in parallelized operations."
For Engineers: *"Need to avoid callback hell or tangled async logic? This gives you:
all(), race(), retry()).Task::run() + await()).sleep() hacks or manual queueing."*For Architects: *"This fills a gap in PHP’s async ecosystem by offering standard-library-style primitives for:
Promise::all([task1, task2])).How can I help you explore Laravel packages today?