Download the PHP package changole/laravel-workflows without Composer
On this page you can find all versions of the php package changole/laravel-workflows. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download changole/laravel-workflows
More information about changole/laravel-workflows
Files in changole/laravel-workflows
Download changole/laravel-workflows
More information about changole/laravel-workflows
Files in changole/laravel-workflows
Vendor changole
Package laravel-workflows
Short Description A Laravel-native workflow engine for modeling business processes with transitions, guards, and audit history.
License MIT
Package laravel-workflows
Short Description A Laravel-native workflow engine for modeling business processes with transitions, guards, and audit history.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-workflows
Laravel Workflows
A lightweight, Laravel-native workflow engine for Eloquent models with explicit transitions, guard validation, events, and audit history.
Supports Laravel 10, 11, and 12.
Features
- Define explicit state transitions for Eloquent models.
- Enforce guard rules before transitions are applied.
- Emit transition lifecycle events for integrations and listeners.
- Keep audit history for transition activity.
- Configure behavior through publishable Laravel config.
Installation
You can install the package via composer:
Configuration
Publishing Config and Migrations
Publish the package configuration and migrations:
Config Example
Usage
Define a Workflow
Attach to a Model
Apply Transitions
Behavior
- Guard failures dispatch
WorkflowBlockedand throwGuardDeniedException. - Successful transitions dispatch
WorkflowTransitioningthenWorkflowTransitioned. - Audit entries are written to
workflow_transition_logswhenworkflow.audit.enabled = true.
Docker Test Workflow
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
The MIT License (MIT). Please see License File for more information.
Credits
- Emmanuel Changole
- All Contributors
All versions of laravel-workflows with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/events Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/events Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
The package changole/laravel-workflows contains the following files
Loading the files please wait ...