CakePHP StateMachine Plugin
StateMachine engine for CakePHP applications.
This branch is for use with CakePHP 4.2+. For details see version map.
- Easy to use and modify
- Live preview as rendered image
- Simple admin interface included.
Note: This plugin is a sandbox/showcase for state machines. Use with Caution.
License is not open source, but open code.
StateMachine plugin requires GraphViz. Please check https://graphviz.gitlab.io/download/ in order to install it for your system.
composer require spryker/cakephp-statemachine
Enable the plugin in your
config/bootstrap.php or call
bin/cake plugin load StateMachine
bin/cake migrations migrate -p StateMachine
Or just copy the migration file into your app
src/config/Migrations/, modify if needed, and then run it as part of your app migrations.
Fully tested so far are PostgreSQL and MySQL, but by using the ORM all major databases should be supported.
http://example.local/admin/state-machine to view your currently setup state machines.
See Documentation for more details.