Download the PHP package symfony-rot-ebal/laravel-workflow without Composer
On this page you can find all versions of the php package symfony-rot-ebal/laravel-workflow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download symfony-rot-ebal/laravel-workflow
More information about symfony-rot-ebal/laravel-workflow
Files in symfony-rot-ebal/laravel-workflow
Package laravel-workflow
Short Description Integerate Symfony Workflow component into Laravel.
License MIT
Informations about the package laravel-workflow
Laravel workflow
Use the Symfony Workflow component in Laravel
Installation
composer require brexis/laravel-workflow
For laravel <= 5.4
Add a ServiceProvider to your providers array in config/app.php
:
Add the Workflow
facade to your facades array:
Configuration
Publish the config file
Configure your workflow in config/workflow.php
Use the WorkflowTrait
inside supported classes
Usage
Use the events
This package provides a list of events fired during a transition
You can subscribe to an event
Dump Workflows
Symfony workflow uses GraphvizDumper to create the workflow image. You may need to install the dot
command of Graphviz
php artisan workflow:dump workflow_name --class App\\BlogPost
You can change the image format with the --format
option. By default the format is png.
php artisan workflow:dump workflow_name --format=jpg
All versions of laravel-workflow with dependencies
symfony/workflow Version ^3.3 || ^4.0
symfony/process Version ^3.3 || ^4.0
symfony/event-dispatcher Version ^3.3 || ^4.0
illuminate/console Version 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*
illuminate/support Version 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*