Download the PHP package net_bazzline/php_component_process_pipe without Composer
On this page you can find all versions of the php package net_bazzline/php_component_process_pipe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download net_bazzline/php_component_process_pipe
More information about net_bazzline/php_component_process_pipe
Files in net_bazzline/php_component_process_pipe
Package php_component_process_pipe
Short Description free as in freedom php component process to easy up creation of pipe process in php
License LGPLv3
Informations about the package php_component_process_pipe
Process Pipe Component in PHP
This free as in freedom component ease up creation of a pipe for processes in php.
Indeed, it is a pseudo pipeline (process collection or process batch) since the php process is single threaded so far.
Currently, there is no plan to bloat the code base with an implementation of STDIN, STDOUT or STDERR. Errors can be handled by the thrown exception. Input is defined by the ExecutableInterface, as well as the output (return value).
The build status of the current master branch is tracked by Travis CI:
It is also available at openhub.net.
Changelog can be found here.
Why?
- separate complex operations into simpler
- easy up unit testing for smaller processes
- separate responsibility (data generator/transformer/validator/flow manipulator)
- create process chains you can read in the code (separate integration code from operation code)
- no dependencies (except you want to join the development team)
Examples
- no input
- input array
- failing execution
- input generator
- input transformer
- input validator
- data flow manipulator
Install
By Hand
mkdir -p vendor/net_bazzline/php_component_process_pipe
cd vendor/net_bazzline/php_component_process_pipe
git clone https://github.com/bazzline/php_component_process_pipe
With Packagist
composer require net_bazzline/php_component_process_pipe:dev-master
Usage
By using the pipe method for multiple process
By using the pipe method once for each process
By instantiation
By doing all
API
API is available at bazzline.net.
Development notes
After code changes, please run:
Links
Thanks to
Other pipe implementations
Final Words
Star it if you like it :-). Add issues if you need it. Pull patches if you enjoy it. Write a blog entry if you use it. Donate something if you love it :-].