LaravelPackages.net
Acme Inc.
Toggle sidebar
fer-projekt/laravel-state-machine

Helpes your control your state using enums.

272
0
About fer-projekt/laravel-state-machine

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

Laravel State Machine

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.

Installation

You can install the package via composer:

composer require fer-projekt/laravel-state-machine

Usage

Development

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

License

The MIT License (MIT). Please see License File for more information.

Comments