Skip to content

jagandecapri/symfony-parallel-process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

symfony-parallel-process

A simple wrapper to enable parallel processing using Symfony Process component.

##Installation

composer require jagandecapri/symfony-parallel-process

##Example

<?php

use Symfony\Component\Process\Process;
use Jack\Symfony\ProcessManager;

$proc1 = new Process('ls -l');
$proc2 = new Process('ls -l');

$proc_mgr = new ProcessManager();

$processes = array();
array_push($processes, $proc1, $proc2);

$max_parallel_processes = 5;
$polling_interval = 1000; // microseconds
$proc_mgr->runParallel($processes, $max_parallel_processes, $polling_interval);

About

Simple parallel processing using Symfony Process component

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages