Skip to content

hpbuniat/parallely

Repository files navigation

parallely

parallely is a re-usable component to do parallel-processing with php.

Example Setup

"parallel": {
    "adapter": "sharedmemory",
    "config": {
        "path": "/tmp",
        "host": "localhost",
        "port": 11211
    }
}
$oParallel = \parallely\Builder::build($aStack, $oConfig->adapter, $oConfig->config);
$oParallel->run(array(
    'check' => array(
        $iTime
    ),
    'run'
));

Builtin transports

  • File
  • Memcached
  • Shared-Memory
  • XCache
  • APC

Note

With empty or invalid configuration, parallely will process all stacks sequentially.

Extending

You may add own adapters by simply implementing the TransportInterface.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published