spryker/cakephp-statemachine

CakePHP StateMachine Plugin

Installs: 23 154

Dependents: 1

Suggesters: 0

Security: 0

Stars: 5

Watchers: 63

Forks: 5

Open Issues: 1

Type:cakephp-plugin

1.4.0 2023-01-10 02:43 UTC

This package is auto-updated.

Last update: 2024-11-18 23:45:48 UTC


README

CI PHPStan level Latest Stable Version Minimum PHP Version

StateMachine engine for CakePHP applications.

This branch is for use with CakePHP 4.2+. For details see version map.

Features

  • 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

License is not open source, but open code.

The plugin is offered are provided free of charge by Spryker Systems GmbH and can be used in any CakePHP project. They are experimental and under the Spryker Sandbox License (see LICENSE file). However, Spryker does not warrant or assume any liability for errors that occur during use. Spryker does not guarantee their full functionality neither does Spryker assume liability for any disadvantages related to the use of the experimental plugin. Spryker does not guarantee any updates, upgrades or similar to the experimental plugin. By installing the experimental plugin, the project agrees to these terms of use. Please check LICENSE every 90 days.

Install

Requirements

StateMachine plugin requires GraphViz. Please check https://graphviz.gitlab.io/download/ in order to install it for your system.

Composer (preferred)

composer require spryker/cakephp-statemachine

Setup

Enable the plugin in your config/bootstrap.php or call

bin/cake plugin load StateMachine

Run migrations:

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.

Usage

Navigate to http://example.local/admin/state-machine to view your currently setup state machines.

See Documentation for more details.