hpbuniat / parallely
parallely
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hpbuniat/parallely
Requires
- php: >=5.3.3
Suggests
- ext-apc: *
- ext-memcached: >=1.0.0
- ext-xcache: *
This package is not auto-updated.
Last update: 2025-12-14 09:54:06 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.