livestreet/forker

Forker presents a simple interfacing for forking in PHP.

Maintainers

Details

github.com/olezhikz/forker

Source

Installs: 18

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 3

pkg:composer/livestreet/forker

dev-master 2019-07-23 07:39 UTC

This package is auto-updated.

Last update: 2025-09-25 09:24:31 UTC


README

Build Status

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);
});