parallely is a re-usable component to do parallel-processing with php.
"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' ));
- File
- Memcached
- Shared-Memory
- XCache
- APC
With empty or invalid configuration, parallely will process all stacks sequentially.
You may add own adapters by simply implementing the TransportInterface.