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. | 2 | 2 | 0 | 41K | 0 | 17.0 | 62.8 | MIT | 3 months ago | |
| ajtis/job-queue-bundle | 0.84 | — | 0 | 0 | 0 | 0 | 0 | 11.1 | — | — | 7 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 | 19 | 57K | 8 | 12.9 | 37.4 | MIT | 1 year ago | |
| laravel/framework | 0.83 | Laravel’s core framework code for building modern PHP web apps with elegant syntax. Includes fast routing, a powerful DI container, sessions and caching, database migrations, queues for jobs, and real-time event broadcasting. | 34,885 | 35,373 | 11,963 | 13M | 57 | 94.9 | 72.6 | MIT | 3 weeks ago | |
| nunomaduro/pokio | 0.83 | Pokio is a simple async API for PHP: run closures concurrently via pcntl forks and await results. Uses FFI shared memory for fast parent/child communication. Built for internal tooling and performance work; not recommended for production use. | 764 | 764 | 38 | 310K | 0 | 19.4 | 40.1 | MIT | 5 months 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 | 8K | 0 | 14.8 | 25.9 | MIT | 6 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. | 297 | 306 | 63 | 39K | 6 | 6.8 | 32.9 | MIT | 9 years ago | |
| spatie/laravel-long-running-tasks | 0.83 | Monitor and poll external long-running jobs (e.g., AWS Rekognition) in Laravel. Define a task with a check() method that runs on a configurable interval, store meta/context, and automatically reschedule until it reports completion. | 39 | 40 | 2 | 368 | 0 | 15.9 | 15.6 | MIT | 4 months ago | |
| amphp/parallel | 0.82 | True parallel processing for PHP with AMPHP: run blocking tasks in worker processes or threads without blocking the event loop. Provides non-blocking concurrency tools and an easy worker pool API for distributing work; no extensions required (threads optional). | 859 | 859 | 69 | 2M | 20 | 36.6 | 58.6 | MIT | 4 months 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 | 104K | 4 | 5.0 | 36.1 | MIT | 2 years 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 | 3 | 8 | 0 | 16.3 | 4.0 | MIT | 4 months 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. | 1,046 | 1,047 | 114 | 207K | 0 | 26.1 | 34.7 | MIT | 5 months ago | |
| 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 | 4K | 0 | 9.0 | 39.8 | MIT | 11 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. | 741 | 754 | 60 | 537K | 0 | 12.4 | 39.5 | 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.0 | MIT | 2 years ago | |
| danilovl/async-bundle | 0.81 | — | 0 | 0 | 0 | 0 | 0 | 14.7 | — | MIT | 7 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 | 3K | 0 | 0.3 | 36.1 | — | 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 | 81K | 1 | 32.6 | 64.7 | 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 | 278K | 2 | 5.9 | 44.6 | 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 | 31 | 356 | 0 | 4.8 | 6.7 | MIT | 5 years ago |
How can I help you explore Laravel packages today?