livestreet / forker
Forker presents a simple interfacing for forking in PHP.
Installs: 18
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 3
pkg:composer/livestreet/forker
This package is auto-updated.
Last update: 2025-09-25 09:24:31 UTC
README
Forker presents a simple interfacing for forking in PHP.
If you need to do several tasks in parallel and collect their results, this is about as simple as it gets.
$things = array($thing1, $thing2);
$results = Forker::map($things, function ($index, $thing) {
// Some expensive operation
return calculateNewThing($thing);
});