定制 leaphub/leaphub-flow 二次开发

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

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

leaphub/leaphub-flow

最新稳定版本:1.1.2

Composer 安装命令:

composer require leaphub/leaphub-flow

包简介

A library for the definition and execution of job flows

README 文档

README

Build Status

LeapHub flow allows you to define and execute job flows by specifying an arbitrary amount of jobs and their pre and post conditions.

Installation

Usage

  1. Create the jobs to be executed

  2. Instantiate them and specify pre and post conditions

  3. Execute the flow

Events

The library provides a number of events which allow you to hook into the flow execution process. The following events are triggered during the execution of a flow:

  • flow.flow_exec.started: Immediately before a flow is executed.
  • flow.flow_exec.finished: After all job of a flow have successfully been executed.
  • flow.job_exec.started: Immediately before a job in a flow is executed.
  • flow.job_exec.finished: After a job in a flow has successfully been executed.

For more information on the flow events see Leaphub\Flow\Event\FlowEvents.

Running the tests

If the dev-dependencies are installed via composer, the test suite can be executed using:

bin/phpunit -c phpunit.xml.dist --coverage-html ./coverage

Contributing

  1. Fork the repository
  2. Create a branch for your contribution e.g. my-awesome-feature
  3. Mage your changes (Follow the git commenting guidelines and code style)
  4. Run the tests to ensure everything works fine
  5. Crate a pull request

统计信息

  • 总下载量: 922
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-20