php-standard-library/promise
Lightweight PHP promise implementation for composing and coordinating async-style workflows. Create, resolve, reject, and chain promises with then/catch-style handlers, useful for deferred results, task pipelines, and bridging callback-based APIs into a cleaner flow.
Avoid if:
Illuminate\Support\Facades\Promise) and don’t need cross-framework compatibility.Consider if:
Promise::all()).*"This is a low-risk, high-reward upgrade to our async workflows. By adopting this lightweight Promise library, we can:
*"This gives us a clean, dependency-free Promise implementation to:
then/catch/finally chains for async operations (e.g., API calls, DB queries).Promise::all() or Promise::race().How can I help you explore Laravel packages today?