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

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

byjg/statemachine
=================

Finite State Machine implementation with conditional transitions and state actions

6.0.0(5mo ago)29.0k↓40.9%MITPHP &gt;=8.3 &lt;8.6

Since Oct 12Compare

[ Source](https://github.com/byjg/php-statemachine)[ Packagist](https://packagist.org/packages/byjg/statemachine)[ GitHub Sponsors](https://github.com/byjg)[ RSS](/packages/byjg-statemachine/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

### README not available

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

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance70

Regular maintenance activity

Popularity26

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Total

6

Last Release

178d ago

Major Versions

1.0.0 → 4.9.02023-05-21

4.9.0 → 5.0.x-dev2024-10-27

5.0.0 → 6.0.02025-11-22

PHP version history (2 changes)5.0.x-devPHP &gt;=8.1 &lt;8.4

6.0.0PHP &gt;=8.3 &lt;8.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/981924?v=4)[Joao Gilberto Magalhaes](/maintainers/byjg)[@byjg](https://github.com/byjg)

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sebdesign/laravel-state-machine

Winzou State Machine service provider for Laravel

3401.3M1](/packages/sebdesign-laravel-state-machine)[wapmorgan/php-deprecation-detector

Analyzer of PHP code to search issues with deprecated functionality in newer interpreter versions.

366479.5k13](/packages/wapmorgan-php-deprecation-detector)[savannabits/filament-flatpickr

Flatpickr input for Filamentphp

9652.6k](/packages/savannabits-filament-flatpickr)[seshac/otp-generator

OTP Generator and Validator for Laravel Applications

42157.5k](/packages/seshac-otp-generator)[symbiote/silverstripe-addressable

SilverStripe addressable and geocoding module

2985.1k7](/packages/symbiote-silverstripe-addressable)[disc/php-zabbix-sender

PHP implementation of zabbix\_sender utility. Works with Zabbix 2.0.8, 2.1.7+ and 4.0 versions.

19158.1k1](/packages/disc-php-zabbix-sender)

PHPackages © 2026

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