2017 © Pedro Peláez
 

library process-builder-chain

Add ability to chain symfony processes

image

ptachoire/process-builder-chain

Add ability to chain symfony processes

  • Wednesday, December 6, 2017
  • by krichprollsch
  • Repository
  • 1 Watchers
  • 6 Stars
  • 3,312 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Process chain

Add chain ability to symfony process builder or process, (*1)

Install

composer install

Usage

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();

A more verbose API is also available:, (*2)

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

Test

phpunit

Credits

Project structure inspired by Negotiation by willdurand., (*3)

License

phprocess-builder-chain is released under the MIT License. See the bundled LICENSE file for details., (*4)

The Versions

06/12 2017

dev-master

9999999-dev

Add ability to chain symfony processes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pierre Tachoire

06/12 2017

1.3.0

1.3.0.0

Add ability to chain symfony processes

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pierre Tachoire

10/04 2016

1.2.0

1.2.0.0

Add ability to chain symfony processes

  Sources   Download

MIT

The Requires

 

by Pierre Tachoire

08/12 2015

1.1.0

1.1.0.0

Add ability to chain symfony processes

  Sources   Download

MIT

The Requires

 

by Pierre Tachoire

12/11 2014

1.0.0

1.0.0.0

Add ability to chain symfony processes

  Sources   Download

MIT

The Requires

 

by Pierre Tachoire