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.
A lightweight solution for running code concurrently in PHP
How can I help you explore Laravel packages today?