Download the PHP package epfremme/process-queue without Composer
On this page you can find all versions of the php package epfremme/process-queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download epfremme/process-queue
More information about epfremme/process-queue
Files in epfremme/process-queue
Download epfremme/process-queue
More information about epfremme/process-queue
Files in epfremme/process-queue
Vendor epfremme
Package process-queue
Short Description Simple process queue using symfony process component and guzzle promises
License MIT
Package process-queue
Short Description Simple process queue using symfony process component and guzzle promises
License MIT
Please rate this library. Is it a good library?
Informations about the package process-queue
process-queue
Simple throttled process queue using symfony process component and guzzle promises
Overview
This was developed specifically for running multiple many long running processes asynchronously inside of a throttled queue. Used to prevent flooding the system with too many simultaneous processes at the same time.
Usage
You can optionally pass a process limit when creating the ProcessManager or it will default to the number of system CPUs available if no limit is provided.
$processFactory = new ProcessFactory('pwd');
$processManager = new ProcessManager($processFactory);
$promise1 = $processManager->enqueue();
$promise2 = $processManager->enqueue(new \SplFileInfo('/path/to/working/directory'));
$promise1->then(function(Process $process) {
// do stuff with the completed process
});
$promise2->otherwise(function(Process $process) {
// do stuff with the failed process
});
// start the queue
$processManager->run();
Installation
Composer composer require epfremme/process-queue
All versions of process-queue with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5
guzzlehttp/promises Version ^1.0
symfony/process Version 2.3
epfremme/collections Version ^1.0
guzzlehttp/promises Version ^1.0
symfony/process Version 2.3
epfremme/collections Version ^1.0
The package epfremme/process-queue contains the following files
Loading the files please wait ...

