{"repo":"Safemood/laravel-workflow","free":true,"listed":false,"github":"https://github.com/Safemood/laravel-workflow","clone":"git clone https://github.com/Safemood/laravel-workflow.git","description":"Laravel package that simplifies workflows with clear actions definition and event tracking.","language":"PHP","stars":213,"topics":["laravel","laravel-framework","laravel-package"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Laravel Workflow Laravel Workflow combines feature details into one class, allowing for action definition and event tracking, simplifying understanding and revealing hidden logic. - Laravel Workflow - Installation - Create a Workflow - Create Actions - Basic Example - Define Workflow Logic - Execute Workflow - Conditional Action Execution - Using DTO for Context Installation You can install the package via Composer: Create a Workflow You can create a workflow using the artisan command: Create Actions You can create an action using the artisan command: Basic Example Once you have set up your workflows and actions, you can define your business logic and orchestrate them within your Laravel application. Define Workflow Logic In your PaymentWorkflow class, you define the sequence of actions and conditions that make up your workflow: Execute Workflow Conditional Action Execution You can use the when method to conditionally execute an action. Using DTO for Context DTOInterface and BaseDTO allow you to handle context type-safely by using DTOs instead of raw arrays. Here's an example of defining a CartDTO class:","default_branch":null,"files":null,"tree":[],"storefront":"/r/Safemood","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Safemood/laravel-workflow/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}