PHPackages                             fer-projekt/laravel-state-machine - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. fer-projekt/laravel-state-machine

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fer-projekt/laravel-state-machine
=================================

Helpes your control your state using enums.

0227PHP

Since Apr 25Pushed 2y ago3 watchersCompare

[ Source](https://github.com/fer-projekt/laravel-state-machine)[ Packagist](https://packagist.org/packages/fer-projekt/laravel-state-machine)[ RSS](/packages/fer-projekt-laravel-state-machine/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel State Machine
=====================

[](#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
------------

[](#installation)

You can install the package via composer:

```
composer require fer-projekt/laravel-state-machine
```

Usage
-----

[](#usage)

Development
-----------

[](#development)

Clone the package from the github:

```
git clone https://github.com/fer-projekt/laravel-state-machine.git

cd laravel-state-machine
```

Starting &amp; stopping docker

```
docker-compose up -d
```

```
docker-compose down
```

Install dependencies via composer and testing:

```
docker-compose exec app bash
```

```
composer update
```

```
phpunit
```

License
-------

[](#license)

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

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/947468484993addb2d342572c56f39461a634b4c8b112e77284903e806dad66e?d=identicon)[fer-plus](/maintainers/fer-plus)

---

Top Contributors

[![arsydb](https://avatars.githubusercontent.com/u/6696018?v=4)](https://github.com/arsydb "arsydb (3 commits)")

### Embed Badge

![Health badge](/badges/fer-projekt-laravel-state-machine/health.svg)

```
[![Health](https://phpackages.com/badges/fer-projekt-laravel-state-machine/health.svg)](https://phpackages.com/packages/fer-projekt-laravel-state-machine)
```

###  Alternatives

[maritos/magento2-performance-fixes

Magento 2 performance fixes.

6321.1k](/packages/maritos-magento2-performance-fixes)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
