PHPackages                             iainp999/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. iainp999/state-machine

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

iainp999/state-machine
======================

Very simple state machine

16[1 issues](https://github.com/iainp999/state_machine/issues)PHP

Since Sep 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/iainp999/state_machine)[ Packagist](https://packagist.org/packages/iainp999/state-machine)[ RSS](/packages/iainp999-state-machine/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

StateMachine
============

[](#statemachine)

Very simple state machine implementation.

Define a set of transitions as part of an 'engine' and then use that engine to drive the behaviour of one or more state machines.

See `example.php` for usage.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/758722?v=4)[Iain Potter](/maintainers/iainp999)[@iainp999](https://github.com/iainp999)

---

Top Contributors

[![iainp999](https://avatars.githubusercontent.com/u/758722?v=4)](https://github.com/iainp999 "iainp999 (6 commits)")

### Embed Badge

![Health badge](/badges/iainp999-state-machine/health.svg)

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

###  Alternatives

[datacreativa/laravel-presentable

Create presenters for Eloquent Models

7323.9k](/packages/datacreativa-laravel-presentable)[dcarbone/soap-plus

PHP SoapClient wrapper class

2450.1k](/packages/dcarbone-soap-plus)[symbiote/silverstripe-datachange-tracker

Record and track changes to any dataobjects. View chages/diffs in model admin.

1622.7k3](/packages/symbiote-silverstripe-datachange-tracker)[rcastera/session

Session Class

222.2k](/packages/rcastera-session)

PHPackages © 2026

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