{"repo":"sebdesign/laravel-state-machine","free":true,"listed":false,"github":"https://github.com/sebdesign/laravel-state-machine","clone":"git clone https://github.com/sebdesign/laravel-state-machine.git","description":"Winzou State Machine service provider for Laravel","language":"PHP","stars":341,"topics":["state-machine","laravel","laravel-package"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Winzou State Machine service provider for Laravel This is a Laravel service provider for winzou/state-machine. It provides dependency injection for the StateMachineFactory . You can also use Laravel's service container to resolve class methods for the callbacks. A facade is also available for convenience. Installation You can install the package via composer. This package requires Laravel 7.0 or higher. For previous Laravel versions, please check the compatibility table. Then require the package using the command-line interface: Versions If you need to install this package in older Laravel installations, use the table below to find a compatible version. Package Laravel PHP :------- :-------------- :------------------------------ ^3.0 ^7.0 - ^12.0 ^7.2.5 ^2.0 5.5. - ^6.0 ^7.0 ^1.0 5.1. - 5.8. ^5.5.9 &#124; ^7.0 Since version 5.5, Laravel uses package auto-discovery, so you don't need to manually add the ServiceProvider and the facade. If you don't use auto-discovery or you are using an older version, add the service provider and the facade in config/app.php. Configuration Publish the config file in config/state-machine.php . Please see the documentation of the StateMachineBundle for all the available options. Usage Now you can use the $stateMachine to interact with the state of the $article . Callbacks Callbacks are used to guard transitions or execute some code before or after applying transitions. This package adds the ability to use Laravel's service container to resolve ca","default_branch":null,"files":null,"tree":[],"storefront":"/r/sebdesign","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sebdesign/laravel-state-machine/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."}