xu / flow
Flow is a business flow implementation.
0.2
2018-11-03 06:33 UTC
Requires
- symfony/workflow: ^3.4
Requires (Dev)
- phpunit/phpunit: ^5 || ^7.4
Suggests
- symfony/event-dispatcher: Allows event listening
This package is auto-updated.
Last update: 2024-03-29 03:44:50 UTC
README
Flow is a business flow implementation.
Why?
Often, we are faced with complex business rules. It can be easily verified if the processes and transitions can be visualized. Flow does that and more.
Features
- Transition Events
- Visualization - Using symfony/workflow
Core classes/interfaces
ProcessInterface
Each process must implement ProcessInterface
. Each process implementation should avoid storing state. The output of the proceed()
method should only depend on the input payload
.
StrategyInterface
A StrategyInterface
implementation decides which process from a number of possible processes should be picked.
Flow
The main Flow class. See Examples.