{"repo":"RingierIMU/state-workflow","free":true,"listed":false,"github":"https://github.com/RingierIMU/state-workflow","clone":"git clone https://github.com/RingierIMU/state-workflow.git","description":"State Workflow Management Package For Laravel. Inspired by ROAM Horizon State Management Package.","language":"PHP","stars":32,"topics":["laravel-state-workflow","state-workflow","state-management","symfony-workflow","workflow","laravel-workflow","laravel-state","transition","laravel"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Laravel State workflow Laravel State workflow provide tools for defining and managing workflows and activities with ease. It offers an object oriented way to define a process or a life cycle that your object goes through. Each step or stage in the process is called a state. You do also define transitions that describe the action to get from one state to another. A workflow consist of state and actions to get from one state to another. These actions are called transitions which describes how to get from one state to another. Requirements Version PHP Laravel --------- ----- --------- 5.x 8.3+ 11, 12 4.x 8.1+ 10, 11 Installation Requires PHP 8.3+ and Laravel 11+. Publish config/workflow.php file Publish migration Run migration Configuration 1. Open config/workflow.php and configure it 2. Add HasWorkflowTrait to your model class to support workflow Usage Manage State/Workflow Authenticated User Resolver Ability to audit and track who action a specific state change for your object. The package leverage the default Laravel auth provider to resolve the authenticated user when applying the state changes. For a custom authentication mechanism, you should override authenticatedUserId in your object class with your own implementation. Fired Event Each step has three events that are fired in order: - An event for every workflow - An event for the workflow concerned - An event for the workflow concerned with the specific transition or state name During state/workflow transition, the follo","default_branch":null,"files":null,"tree":[],"storefront":"/r/RingierIMU","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/RingierIMU/state-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."}