定制 ptachoire/process-builder-chain 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 9
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固