A workflow module fo pluf.
If you would like to contribute to Pluf, please read the README and CONTRIBUTING documents.
The most important guidelines are described as follows:
All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
Fork the project, create a feature branch, and send us a pull request.
To ensure a consistent code base, you should make sure the code follows the PSR-2 Coding Standards.
https://github.com/hekailiang/squirrel
Workflow is aimed to provide a lightweight, highly flexible and extensible, diagnosable, easy use and type safe PHP 8 state machine implementation for enterprise usage.
Here is the state machine diagram which describes the state change of an ATM:
The sample code could be found in folder "tests\ATMStateMachine.php".
Pluf Workflow has been deployed to pakcagest (php composer repository) repository, so you only need to add following dependency to the composer.json.
"pluf\workflow": "7.x"