php-standard-library/promise
Lightweight Promise implementation for PHP with a simple, standards-inspired API. Create, resolve, reject, and chain async-style operations, handle errors, and compose results with familiar then/catch patterns—ideal for libraries that need non-blocking workflows.
dispatch() calls in Promises for queue jobs or HTTP clients).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().*"This fills a gap in Laravel’s async tooling by providing a first-class Promise layer that:
dispatch() calls in Promises for chaining (e.g., Promise::all([job1(), job2()])).How can I help you explore Laravel packages today?