leaphub/leaphub-flow
最新稳定版本:1.1.2
Composer 安装命令:
composer require leaphub/leaphub-flow
包简介
A library for the definition and execution of job flows
README 文档
README
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
-
Create the jobs to be executed
-
Instantiate them and specify pre and post conditions
-
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
- Fork the repository
- Create a branch for your contribution e.g. my-awesome-feature
- Mage your changes (Follow the git commenting guidelines and code style)
- Run the tests to ensure everything works fine
- Crate a pull request
统计信息
- 总下载量: 922
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-20