Download the PHP package zojaji/laravel-workflow without Composer
On this page you can find all versions of the php package zojaji/laravel-workflow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zojaji/laravel-workflow
More information about zojaji/laravel-workflow
Files in zojaji/laravel-workflow
Download zojaji/laravel-workflow
More information about zojaji/laravel-workflow
Files in zojaji/laravel-workflow
Vendor zojaji
Package laravel-workflow
Short Description General-purpose workflow engine for Laravel with Spatie integration.
License MIT
Package laravel-workflow
Short Description General-purpose workflow engine for Laravel with Spatie integration.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-workflow
Laravel Workflow
General-purpose workflow engine for Laravel, with default integration to Spatie's laravel-permission.
Full developer documentation: docs/guide.en.md
Examples: docs/examples.en.md
Persian documentation: docs/guide.fa.md, docs/examples.fa.md
Installation
- Require the package:
composer require zojaji/laravel-workflow
- Publish configs, migrations, and views:
php artisan vendor:publish --tag=workflow-configphp artisan vendor:publish --tag=workflow-migrationsphp artisan vendor:publish --tag=workflow-views
- Run migrations:
php artisan migrate
Dependencies
spatie/laravel-permissionas a primary dependency- Add the
Spatie\Permission\Traits\HasRolestrait to your User model
- Add the
Model Configuration
- In
config/workflow.php:workflow.models.role: Role model class (default:Spatie\Permission\Models\Role)workflow.models.user: User model class (default:config('auth.providers.users.model'))
Quick Usage
- Create a task with decision & assignment:
\Zojaji\Workflow\Facades\Workflow::completeAndRoute($taskId, $userId, $context)
- Finalize user selection for the
role_direct_usermethod:\Zojaji\Workflow\Facades\Workflow::finalizeSelection($instanceId, $stateId, $taskName, $userId, $roleId, $decisionOptions)
Routes
- API is loaded under
api/workflow/*and admin pages underadmin/workflows/*.
License
- MIT
All versions of laravel-workflow with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
illuminate/support Version ^10.0 || ^11.0 || ^12.0
illuminate/database Version ^10.0 || ^11.0 || ^12.0
illuminate/routing Version ^10.0 || ^11.0 || ^12.0
illuminate/http Version ^10.0 || ^11.0 || ^12.0
illuminate/view Version ^10.0 || ^11.0 || ^12.0
spatie/laravel-permission Version ^6.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0
illuminate/database Version ^10.0 || ^11.0 || ^12.0
illuminate/routing Version ^10.0 || ^11.0 || ^12.0
illuminate/http Version ^10.0 || ^11.0 || ^12.0
illuminate/view Version ^10.0 || ^11.0 || ^12.0
spatie/laravel-permission Version ^6.0
The package zojaji/laravel-workflow contains the following files
Loading the files please wait ...