PHPackages                             michcald/fsm - 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. michcald/fsm

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

michcald/fsm
============

Finite State Machine Library for PHP

v1.0.0(11y ago)8273[4 issues](https://github.com/michcald/fsm/issues)MITPHPPHP &gt;=5.3.3

Since Apr 5Pushed 11y ago1 watchersCompare

[ Source](https://github.com/michcald/fsm)[ Packagist](https://packagist.org/packages/michcald/fsm)[ RSS](/packages/michcald-fsm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

FSM
===

[](#fsm)

A [Finite State Machine](http://en.wikipedia.org/wiki/Finite-state_machine) (FSM) implementation for PHP.

You can use this library for creating:

- [DFA](http://en.wikipedia.org/wiki/Deterministic_finite_automaton) - Deterministic Finite Automaton
- [NFA](http://en.wikipedia.org/wiki/Nondeterministic_finite_automaton) - Nondeterministic Finite Automaton

Installation (using composer)
=============================

[](#installation-using-composer)

You can find the library in packagist [here](https://packagist.org/packages/michcald/fsm).

The last stable release is `v1.0.1`.

```
{
  "require": {
    "michcald/fsm": "1.0.*"
  }
}
```

Documentation
=============

[](#documentation)

[Read the documentation for 1.0.x](https://github.com/michcald/fsm/wiki)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4061d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5589662?v=4)[Michael Caldera](/maintainers/michcald)[@michcald](https://github.com/michcald)

---

Top Contributors

[![michcald](https://avatars.githubusercontent.com/u/5589662?v=4)](https://github.com/michcald "michcald (32 commits)")

---

Tags

statefsmfinitemachinemichcald

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/michcald-fsm/health.svg)

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

###  Alternatives

[symfony/workflow

Provides tools for managing a workflow or finite state machine

62942.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)[rolfvreijdenberger/izzum-statemachine

A superior statemachine library php &gt;= 5.3. Integrates with your domain models perfectly.

7425.5k](/packages/rolfvreijdenberger-izzum-statemachine)[dougsisk/laravel-country-state

Country &amp; state helper for Laravel.

1681.7M](/packages/dougsisk-laravel-country-state)

PHPackages © 2026

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