spatie/async
Run PHP tasks in parallel with a simple Pool API built on PCNTL. Add closures, handle results via then/catch, and wait for completion. Ideal for speeding up batch jobs, CPU-heavy work, and IO-bound processing with multiple processes.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| php-standard-library/async | 0.85 | 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. | 1 | 1 | 0 | 28K | 0 | 21.2 | 64.8 | MIT | 1 week ago | |
| ajtis/job-queue-bundle | 0.84 | — | 0 | 0 | 0 | 4 | 0 | 15.1 | 10.8 | — | 4 months ago | |
| webmozarts/console-parallelization | 0.83 | Parallelize Symfony Console commands using multiple processes. A main process distributes items to child workers, restarts workers after segments to avoid slowdown, and supports batching with hooks for setup/teardown (e.g., DB flush) for faster bulk jobs. | 227 | 227 | 17 | 54K | 6 | 12.2 | 36.0 | MIT | 1 year ago | |
| nunomaduro/pokio | 0.83 | Pokio is a minimal async API for PHP. Run closures concurrently using PCNTL forking and shared-memory IPC via FFI, then await results like promises. Built for internal tooling/perf work (e.g., Pest). Not production-safe; use at your own risk. | 760 | 711 | 39 | 218K | 0 | 24.2 | 39.2 | MIT | 1 month ago | |
| spatie/laravel-artisan-dispatchable | 0.83 | Register Laravel jobs as Artisan commands by implementing the ArtisanDispatchable interface. Dispatch queued jobs via CLI (e.g., php artisan process-podcast) so long-running tasks won’t block the scheduler, while remaining runnable from Artisan. | 160 | 161 | 7 | 7K | 0 | 19.0 | 25.7 | MIT | 3 months ago | |
| cocur/background-process | 0.83 | Run shell commands as detached background processes from PHP so they keep running after the request/script ends. Start jobs, optionally get PID, poll if running, and stop them (Unix). Basic Windows support for launching only. | 298 | 307 | 62 | 44K | 6 | 6.7 | 33.3 | MIT | 9 years ago | |
| amphp/parallel-functions | 0.82 | Wrap callables to run in parallel processes/threads with AMPHP. Provides helpers like parallelMap to execute CPU-heavy or blocking tasks concurrently; callable state must be serializable. Built for PHP 8.1+ with fibers-friendly concurrency. | 279 | 280 | 18 | 117K | 4 | 5.0 | 36.8 | MIT | 2 years ago | |
| amphp/http-server | 0.82 | Non-blocking, concurrent HTTP/1.1 and HTTP/2 application server for PHP 8.1+ built on Revolt and Amp (fibers). Includes TLS, middleware, gzip, and integrations for routing, static files, WebSockets, sessions, and more. | 1,324 | 1,323 | 102 | 601K | 11 | 41.2 | 46.7 | MIT | 1 month ago | |
| solution-forest/workflow-engine-core | 0.82 | Framework-agnostic workflow engine core for PHP 8.3+. Define and run workflows with type-safe steps, state tracking/persistence, plugins for actions/storage, retries, timeouts, and rich error handling. Actively developed; not production-ready. | 9 | 9 | 2 | 1 | 0 | 20.0 | 0.7 | MIT | 1 month ago | |
| spatie/laravel-long-running-tasks | 0.82 | Monitor and manage external long-running tasks (e.g., AWS Rekognition jobs) in Laravel by polling for status. Define a task with a check() method, store metadata, and keep checking at a configurable interval until completion. | 38 | 38 | 2 | 279 | 0 | 20.8 | 14.7 | MIT | 1 month ago | |
| spatie/fork | 0.81 | Run PHP code concurrently using lightweight process forking. Define multiple closures and execute them in parallel, collecting results in order. Requires PHP 8 with pcntl (CLI only) and posix extensions on Unix-like systems. | 0 | 1,042 | — | 211K | — | 30.8 | 36.4 | — | — | |
| spatie/spatie-content-api | 0.81 | Laravel/PHP package powering Spatie’s promotional-site content API. Fetch posts for a product or project (e.g., mailcoach) via a simple ContentApi facade and expose consistent, reusable content to your frontend or other services. | 5 | 5 | 2 | 455 | 0 | 13.5 | 27.7 | MIT | 7 months ago | |
| spatie/url | 0.81 | Immutable URL parser/builder for PHP. Parse scheme, host, path and query, then fluently transform parts (withHost, withPath, withScheme) and manage query parameters. Supports allowed/sanitized schemes for safer URL handling. | 739 | 752 | 60 | 413K | 0 | 12.4 | 37.9 | MIT | 2 years ago | |
| matthiasnoback/phpunit-asynchronicity | 0.81 | PHPUnit/Behat helper for testing asynchronous behavior. Provides assertEventually() to retry a callable until assertions pass or a timeout occurs—useful for waiting on files, processes, or UI updates, with configurable timeout and polling interval. | 36 | 36 | 7 | 8K | 0 | 3.7 | 32.1 | MIT | 2 years ago | |
| danilovl/async-bundle | 0.81 | — | 0 | 0 | 0 | 0 | 0 | 19.2 | — | MIT | 3 months ago | |
| mehr-als-nix/parallel | 0.81 | Lightweight PHP library to run multiple tasks in parallel using a Manager/Worker model. Uses pcntl on *NIX to fork processes (auto-detects CPU count), with graceful fallback to serial execution when requirements aren’t met. Captures results and errors per worker. | 7 | 7 | 0 | 4K | 0 | 0.3 | 37.3 | — | 8 years ago | |
| wyrihaximus/async-test-utilities | 0.80 | Async testing utilities for PHP/React: extend AsyncTestCase to run each PHPUnit test inside a Fiber with a default 30s timeout. Includes TimeOut attribute (class/method), plus helpers like random namespaces/directories and callable expectation utilities. | 4 | 4 | 0 | 21K | 1 | 27.7 | 57.8 | MIT | 1 month ago | |
| react/async | 0.80 | Async utilities and fibers for ReactPHP. Provides async/await-style control flow plus Promise combinators (delay, parallel, series, waterfall, coroutine) to simplify sequencing and coordination of non-blocking, event-loop driven operations. | 222 | 223 | 18 | 191K | 2 | 5.9 | 42.3 | MIT | 2 years ago | |
| spatie/twitter-streaming-api | 0.79 | Laravel-friendly PHP client for Twitter’s Streaming API. Keep an open HTTPS connection and react to tweets and user events in real time (no polling). Easily filter streams, listen for keywords/mentions, and handle incoming tweet payloads with callbacks. | 173 | 176 | 32 | 347 | 0 | 4.8 | 6.6 | MIT | 5 years ago | |
| amphp/parallel | 0.78 | True parallel processing for PHP with AMPHP: run blocking work in worker processes or threads without blocking the event loop and without extensions. Includes non-blocking concurrency tools plus an opinionated worker pool API for submitting tasks and awaiting results. | 850 | 857 | 68 | 2M | 20 | 41.1 | 60.5 | MIT | 2 weeks ago |
How can I help you explore Laravel packages today?