PHP code example of tonicforhealth / parallel-process-runner
1. Go to this page and download the library: Download tonicforhealth/parallel-process-runner library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tonicforhealth / parallel-process-runner example snippets
$runner = new \Tonic\ParallelProcessRunner\ParallelProcessRunner();
$runner
->setMaxParallelProcess(4)
->add(new Process('ls'))
->add([
new Process('ls'),
new Process('ls'),
])
->run();