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.3 | MIT | 9 years ago | |
| kriswallsmith/spork | 0.82 | — | 586 | 589 | 51 | 2K | 16 | 9.9 | 17.6 | MIT | — | |
| amphp/parallel | 0.81 | 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 | |
| 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. | 0 | 2,826 | — | 175K | — | 42.2 | 27.9 | — | — | |
| 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. | 298 | 307 | 62 | 44K | 6 | 6.7 | 33.3 | 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 | 54K | 6 | 12.2 | 36.0 | 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 | 2K | 0 | 0.0 | 44.5 | — | — | |
| 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 | 117K | 4 | 5.0 | 36.8 | 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.0 | — | — | 10 years ago | |
| nunomaduro/pokio | 0.78 | 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-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. | 648 | 653 | 53 | 19K | 0 | 28.6 | 23.4 | MIT | 2 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,222 | 76 | 108K | 0 | 36.3 | 31.3 | MIT | 1 month ago |
How can I help you explore Laravel packages today?