parallite/parallite-php
Parallite is a lightweight PHP package for running tasks in parallel, with a simple API for concurrent jobs and result collection. It integrates with Laravel and helps speed up independent operations without extra infrastructure, making it useful for batch processing and I/O-bound work.
Architecture fit
pcntl or subprocess via proc_open), not an event loop. That is a fundamentally different execution model from the single-threaded, per-request lifecycle that Laravel's HTTP stack assumes.Executor/Service layer described in the team's PHP guidelines. It should be wrapped in a ParallelExecutorInterface and injected via constructor, never called as a static helper from controllers.Integration feasibility
pcntl/posix extensions, non-Windows OS, and the PHP version matrix. Alpine and slim Docker images frequently ship without pcntl.fork, which means the closure captures live process state (DB handles, caches, loggers). This is excellent DX and a significant operational footgun simultaneously.composer.json rather than the README.Technical risk
2026-06-01 release date is a positive signal of activity but not of durability.Key questions
Bus::batch, Http::pool, or spatie/async?Stack fit
ParallelRunnerInterface::run(array $tasks): ParallelResult), returning a readonly ParallelResult object per the team's Result Object pattern. This keeps call sites testable and lets us swap in spatie/async or a queue-based implementation without touching business logic.Migration path
ParallelRunnerInterface with the package as the adapter; add a sequential fallback for Windows/CI/unsupported environments.Compatibility
pcntl/posix in every environment: local dev, CI image, production container, and any batch host.Sequencing
Maintenance
Support
Scaling
Failure modes to plan for
pcntl is absent (e.g., a CI runner or Windows laptop) rather than graceful degradation.Ramp-up
ParallelRunnerInterface and a result object rather than the package directly.TPM recommendation
How can I help you explore Laravel packages today?