Skip to content

oleg-demidov/forker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple interface for executing N things in parallel using forking and returning results.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%