spatie/fork
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| jenner/simple_fork | 0.83 | SimpleFork is a PHP PCNTL-based multi-process framework with Java-like Thread/Runnable APIs. It provides process pools, automatic zombie recovery, signal handling, and IPC options like shared memory, SysV queues/semaphores, file locks, and Redis queues/cache. | 227 | 233 | 58 | 6K | 3 | 8.3 | 20.8 | MIT | 9 years ago | |
| kriswallsmith/spork | 0.82 | — | 586 | 589 | 50 | 2K | 16 | 9.9 | 17.2 | MIT | — | |
| amphp/parallel | 0.81 | 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). | 854 | 859 | 68 | 2M | 20 | 38.3 | 59.1 | MIT | 2 months ago | |
| spatie/async | 0.81 | 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. | 2,814 | 2,826 | 184 | 144K | 0 | 39.8 | 26.1 | MIT | 5 months ago | |
| hyperf/coroutine | 0.80 | — | 0 | 0 | 1 | 49K | 1 | 27.0 | 64.0 | MIT | 1 month ago | |
| cocur/background-process | 0.80 | 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 | 307 | 63 | 45K | 6 | 6.8 | 33.7 | MIT | 9 years ago | |
| webmozarts/console-parallelization | 0.80 | 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 | 58K | 6 | 12.2 | 36.4 | MIT | 1 year ago | |
| draw/process | 0.79 | draw/process is a Laravel/PHP package for running and managing external processes. It helps you start commands, capture output, handle errors, and control execution in a clean API—useful for queues, build tasks, and integrations that need shell tools. | 0 | 0 | 0 | 1K | 0 | 0.0 | 43.2 | — | — | |
| amphp/parallel-functions | 0.79 | 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 | 102K | 4 | 5.0 | 36.0 | MIT | 2 years ago | |
| analogic/socket | 0.79 | Analogic Socket is a PHP package for building lightweight TCP/UDP socket clients and servers. It provides simple APIs for connecting, sending/receiving data, and handling basic networking workflows without pulling in a full framework. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | — | 10 years ago | |
| spatie/laravel-long-running-tasks | 0.78 | 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. | 38 | 39 | 2 | 215 | 0 | 18.3 | 12.9 | MIT | 2 months ago | |
| nunomaduro/pokio | 0.77 | 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 | 39 | 310K | 0 | 21.4 | 40.8 | MIT | 3 months ago | |
| spatie/laravel-short-schedule | 0.74 | Run Laravel Artisan commands at sub-minute intervals (every second or even 0.5s). Adds a short-scheduler powered by a ReactPHP event loop, running separately from schedule:run so high-frequency tasks don’t block or get delayed. | 656 | 659 | 53 | 20K | 0 | 25.8 | 23.1 | MIT | 3 months ago | |
| spatie/laravel-web-tinker | 0.74 | Adds Laravel’s Tinker REPL to your browser via a protected route, making it easy to run and tweak code without the terminal. Includes light/dark UI and simple install/publish commands. For local/dev only—can execute arbitrary code. | 1,216 | 1,223 | 75 | 95K | 0 | 33.7 | 29.9 | MIT | 2 months ago |
How can I help you explore Laravel packages today?