Download the PHP package dereuromark/cakephp-workflow without Composer

On this page you can find all versions of the php package dereuromark/cakephp-workflow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cakephp-workflow

CakePHP Workflow Plugin

CI codecov Latest Stable Version Minimum PHP Version Coding Standards

This branch is for CakePHP 5.2+. See version map for details.

State machine and workflow engine for CakePHP with PHP 8 Attributes, YAML/NEON config support, and admin UI.

[!TIP] Try the live demo: https://sandbox.dereuromark.de/workflow-sandbox

There is also a demo app with more details to experiment with

Requirements

Installation

For server-side diagram exports via /workflow/workflows/draw in svg / png formats, install GraphViz and make sure the dot binary is available on the host. Widget exports in app pages do not require GraphViz.

Load the plugin:

Run migrations:

The generic foreign_key column is polymorphic and defaults to integer; set the shared Polymorphic.type key to biginteger for large-id apps, or uuid / binaryuuid for non-integer keys. UUID / char primary keys are fully supported — no code changes needed. See Installation: Entity id type.

Configuration

Configure the plugin in your config/app.php:

The admin UI is fail-closed by default: you must provide Workflow.adminAccess to expose /admin/workflow/.... Manual admin actions also record actor and context metadata; when you still rely on legacy session auth, the admin logger falls back to Auth.User.id automatically.

Defining Workflows

Using PHP 8 Attributes (Recommended)

Create state classes in your namespace:

Using NEON or YAML

Install the optional parser you want:

Create workflow files in config/workflows/:

Using the Workflow

Add the behavior to your table:

Apply transitions:

See the documentation for the full API.

Embedding Workflow Diagrams In App Pages

For app-facing pages you often want a compact diagram preview, not the full admin screen.

Load Mermaid with the helper toolkit:

Render a compact workflow widget with:

For detailed helper options and canonical server-side draw exports, see the View Helper integration docs.

SVG export uses a standalone serializer, so downloaded files get explicit dimensions from the rendered viewBox instead of keeping Mermaid's responsive width="100%" markup. This makes saved SVGs much more usable in external tools.

PNG export rasterizes that same standalone SVG into a canvas with a white background, which is useful for docs, tickets, and tools that do not render SVG cleanly.

Drift Safety

Changing a workflow while records exist can leave records in a state that no longer exists. This is handled out of the box, with no configuration:

See Drift Safety for details.

CLI Commands

Features

Documentation

Full documentation: https://dereuromark.github.io/cakephp-workflow/


All versions of cakephp-workflow with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
cakephp/cakephp Version ^5.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dereuromark/cakephp-workflow contains the following files

Loading the files please wait ...