ptachoire/process-builder-chain
最新稳定版本:1.3.0
Composer 安装命令:
composer require ptachoire/process-builder-chain
包简介
Add ability to chain symfony processes
README 文档
README
Add chain ability to symfony process builder or process
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:
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.
License
phprocess-builder-chain is released under the MIT License. See the bundled LICENSE file for details.
统计信息
- 总下载量: 3.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-24