PHPackages                             djmattyg007/statemachine - 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. djmattyg007/statemachine

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

djmattyg007/statemachine
========================

Matty G's State Machine

2.0.0(6y ago)050[1 PRs](https://github.com/djmattyg007/statemachine-php/pulls)MITPHPPHP ^7.2.9CI failing

Since Nov 6Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/djmattyg007/statemachine-php)[ Packagist](https://packagist.org/packages/djmattyg007/statemachine)[ Docs](https://github.com/djmattyg007/statemachine-php)[ RSS](/packages/djmattyg007-statemachine/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (4)Used By (0)

MattyG's State Machine
======================

[](#mattygs-state-machine)

This is a fork of the Symfony Workflow component. It retains a lot of the core ideas of the Symfony component, but makes a couple of rather important adjustments. Most fundamentally, it has been transitioned away from a generic workflow component into a proper state machine. This has been done to because of the benefits of knowing that an entity is always only in a single state. While some non-FSM workflows are still supported (by virtue of not being explicitly checked for and disallowed in the code), they are discouraged.

You can find the original documentation for the Symfony component at the following URL:

It's still somewhat relevant, and should hopefully tide you over until I've had a chance to write proper documentation myself!

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance54

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~132 days

Total

2

Last Release

2246d ago

Major Versions

1.0.0 → 2.0.02020-03-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/29e8622a72b856256e1b0f9e5ba9480444c6391e6e80a48eeb52fc4118eacf06?d=identicon)[djmattyg007](/maintainers/djmattyg007)

---

Top Contributors

[![djmattyg007](https://avatars.githubusercontent.com/u/489338?v=4)](https://github.com/djmattyg007 "djmattyg007 (8 commits)")

---

Tags

stateworkflowstatemachinetransitionpetrinetplacestate-machine

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/djmattyg007-statemachine/health.svg)

```
[![Health](https://phpackages.com/badges/djmattyg007-statemachine/health.svg)](https://phpackages.com/packages/djmattyg007-statemachine)
```

###  Alternatives

[symfony/workflow

Provides tools for managing a workflow or finite state machine

62842.3M170](/packages/symfony-workflow)[yohang/finite

A simple PHP Finite State Machine

1.3k3.5M10](/packages/yohang-finite)[winzou/state-machine

A very lightweight yet powerful PHP state machine

52113.7M18](/packages/winzou-state-machine)[sebdesign/laravel-state-machine

Winzou State Machine service provider for Laravel

3401.3M1](/packages/sebdesign-laravel-state-machine)[gomachan46/state-machine

simple state machine with annotations for PHP, inspired by AASM known as a Ruby state machine.

1893.9k](/packages/gomachan46-state-machine)[iben12/laravel-statable

Statable trait for Laravel Eloquent models

96299.8k1](/packages/iben12-laravel-statable)

PHPackages © 2026

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