Helpes your control your state using enums.
fer-projekt/laravel-state-machine is a Laravel package for helpes your control your state using enums..
It currently has 0 GitHub stars and 272 downloads on Packagist.
Install it with composer require fer-projekt/laravel-state-machine.
Discover more Laravel packages by fer-projekt
or browse all Laravel packages to compare alternatives.
Last updated
This package simplify controlling the transition between model states, allowing you to prevent unlogically transition and also controlling the initial state of the model using the PHP enums.
Each enum allows you to define your states, the allowed transitions and the initial state, all in one place.
You can install the package via composer:
composer require fer-projekt/laravel-state-machine
Clone the package from the github:
git clone https://github.com/fer-projekt/laravel-state-machine.git
cd laravel-state-machine
Starting & stopping docker
docker-compose up -d
docker-compose down
Install dependencies via composer and testing:
docker-compose exec app bash
composer update
phpunit
The MIT License (MIT). Please see License File for more information.