iripvanwinkle / queue-processes
It is the queue container for symfony/process
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:php-extension
Requires
- phpunit/phpunit: 5.1.*
- symfony/process: 3.1.*
This package is not auto-updated.
Last update: 2025-01-04 20:31:12 UTC
README
The queue for symfony/process
Install
Via Composer
$ composer require iripvanwinkle/queue-processes
Usage
$queue = new QueueProcesses(); foreach (range(1, 10) as $index) { $queue->addCommand("echo $index", function ($type, $buffer) use (&$commonBuffer) { $commonBuffer .= $buffer; }); } $queue->setLimit(2); $queue->run(); echo $commonBuffer; // Output: 1\n2\n3\n4\n5\n6\n7\n8\n9\n10
Testing
$ composer test
License
The MIT License (MIT). Please see License File for more information.