hpbuniat / parallely
parallely
dev-master
2013-05-20 19:40 UTC
Requires
- php: >=5.3.3
Suggests
- ext-apc: *
- ext-memcached: >=1.0.0
- ext-xcache: *
This package is not auto-updated.
Last update: 2024-03-24 00:55:29 UTC
README
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.