Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Latest commit

 

History

History
15 lines (11 loc) · 485 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 485 Bytes

Forker

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