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

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

xiaobudongzhang/state-machine
=============================

A very lightweight yet powerful PHP state machine

v0.4.2(6y ago)0491MITPHP ^7.1.3

Since May 26Compare

[ Source](https://github.com/xiaobudongzhang/state-machine)[ Packagist](https://packagist.org/packages/xiaobudongzhang/state-machine)[ Docs](https://github.com/xiaobudongzhang/StateMachine)[ RSS](/packages/xiaobudongzhang-state-machine/feed)WikiDiscussions Synced today

READMEChangelogDependencies (5)Versions (14)Used By (1)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/xiaobudongzhang/state-machine).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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 ~179 days

Recently: every ~314 days

Total

13

Last Release

2217d ago

PHP version history (2 changes)0.1PHP &gt;=5.3.0

0.4.0PHP ^7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/bef2a2ef65b646eed27d5bef5a7a1133cbff7fc5c54fb5055df4e1ab9042237b?d=identicon)[xiaobudongzhang](/maintainers/xiaobudongzhang)

---

Tags

eventstatestatemachinecallback

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[winzou/state-machine

A very lightweight yet powerful PHP state machine

52113.7M18](/packages/winzou-state-machine)[symfony/workflow

Provides tools for managing a workflow or finite state machine

62842.3M170](/packages/symfony-workflow)[sebdesign/laravel-state-machine

Winzou State Machine service provider for Laravel

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

A simple PHP Finite State Machine

1.3k3.5M10](/packages/yohang-finite)[iben12/laravel-statable

Statable trait for Laravel Eloquent models

96299.8k1](/packages/iben12-laravel-statable)[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)

PHPackages © 2026

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