PHP code example of ptachoire / process-builder-chain
1. Go to this page and download the library: Download ptachoire/process-builder-chain 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/ */
ptachoire / process-builder-chain example snippets
use Chain\Chain;
$chain = new Chain($process);
$chain->add('|', $process);
$chain->add('&&', $process);
$chain->add('>', $output);
// see the Chain\Chain source code for all accepted links
$chain->getProcess();
use Chain\Chain;
$chain = new Chain(new Process('cat'));
$chain
->input('input.txt')
->pipe('sort')
->andDo('pwgen')
->output('result.log')
->errors('/dev/null');
// see the Chain\Chain source code for all accepted links
$chain->getProcess(); // cat < input.txt | sort && pwgen > result.log 2> /dev/null