Download the PHP package nowi5/laravel-workflow without Composer
On this page you can find all versions of the php package nowi5/laravel-workflow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-workflow
Laravel Workflow Jobs Package
The Laravel Workflow Jobs package allows you to effortlessly create workflows that run as jobs with robust logging capabilities. Use this package to design, execute, and monitor workflow processes using Laravel jobs and enjoy a seamless experience with dynamic parameter passing and custom logic evaluations.
Installation
-
Install the package via composer:
-
Publish the config file:
- Run migrations (if needed) to set up the required tables for logging and management:
Usage
Creating a Workflow
To create a workflow, you can define it as shown in the example:
Running a Workflow
After defining your workflow, you can start and fetch its JSON representation:
Creating a Workflow Step (Job)
Each step in a workflow corresponds to a Laravel job. To create a custom workflow job:
Dynamic Parameter Passing
You can pass parameters from one step's output to another's input dynamically using the format %stepName.parameterName%
:
Custom Logic Evaluation
You can also define custom logic evaluations to determine which step to execute next based on the output of the previous steps: Defining own logic for the workflow as well as adding logic at all is optional. If no logic is defined, the workflow will execute all steps in the order they were added.
Contributing
If you'd like to contribute to this project, please submit a PR or open an issue. We appreciate any feedback or improvements!
License
This package is open-source software licensed under the MIT license.
Notes
"Laravel" is a registered trademark of Taylor Otwell. This project is not affiliated, associated, endorsed, or sponsored by Taylor Otwell, nor has it been reviewed, tested, or certified by Taylor Otwell. The use of the trademark "Laravel" is for informational and descriptive purposes only. Laravel Workflow is not officially related to the Laravel trademark or Taylor Otwell.
All versions of laravel-workflow with dependencies
laravel/framework Version ^9.0|^10.0
spatie/laravel-model-states Version ^2.1