Download the PHP package simon-roland/state-machine without Composer
On this page you can find all versions of the php package simon-roland/state-machine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download simon-roland/state-machine
More information about simon-roland/state-machine
Files in simon-roland/state-machine
Download simon-roland/state-machine
More information about simon-roland/state-machine
Files in simon-roland/state-machine
Vendor simon-roland
Package state-machine
Short Description A Laravel state machine trait for managing state transitions.
License MIT
Package state-machine
Short Description A Laravel state machine trait for managing state transitions.
License MIT
Please rate this library. Is it a good library?
Informations about the package state-machine
State Machine
A Laravel trait for managing state transitions.
Installation
Install the package via composer:
Usage
To use the HasStateMachine trait, include it in your Eloquent model and implement the required methods.
Example Workflow
Here’s how you can interact with the state machine in your code:
Working with Enums
You can use enums to define the allowed states and transitions:
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.
All versions of state-machine with dependencies
PHP Build Version
Package Version
The package simon-roland/state-machine contains the following files
Loading the files please wait ....