PHPackages                             thettler/simple-states - 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. thettler/simple-states

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

thettler/simple-states
======================

Simple State Machines for PHP

v0.0.3(3w ago)03↓90%[2 PRs](https://github.com/thettler/simple-states/pulls)MITPHPPHP ^8.5CI passing

Since Jun 4Pushed 2w agoCompare

[ Source](https://github.com/thettler/simple-states)[ Packagist](https://packagist.org/packages/thettler/simple-states)[ Docs](https://github.com/thettler/simple-states)[ GitHub Sponsors](https://github.com/thettler)[ RSS](/packages/thettler-simple-states/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (4)Versions (7)Used By (0)

Simple State Machies for PHP
============================

[](#simple-state-machies-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/06c0d32e116cad95802259e10dd6e7ab3d7d5dcfb45f51ca2ac91675fcfbb1ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74686574746c65722f73696d706c652d7374617465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thettler/simple-states)[![Tests](https://camo.githubusercontent.com/2acd23874aac9845c3fda9c769eb32609cd55f3db323be849fd43a06eb45b597/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f74686574746c65722f73696d706c652d7374617465732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/thettler/simple-states/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/10e67cc42d5627dea1e2a71998293c2cbe8c43abfc390010cb3217d73d6ccac5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74686574746c65722f73696d706c652d7374617465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thettler/simple-states)

This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/fd76d8b3fe8e250a5d79a46a9c26b3459fc9803d43a00f67ce09f3c863df2e74/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f73696d706c652d7374617465732e6a70673f743d31)](https://spatie.be/github-ad-click/simple-states)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require thettler/simple-states
```

Usage
-----

[](#usage)

```
$skeleton = new Thettler\SimpleStates();
echo $skeleton->echoPhrase('Hello, Thettler!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Tobias Hettler](https://github.com/thettler)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance96

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~15 days

Total

3

Last Release

21d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6caaa4ad5c531405e77f53cc9db5e523f267b45a45b3eefeb13560cccaf001aa?d=identicon)[thettler](/maintainers/thettler)

---

Top Contributors

[![thettler](https://avatars.githubusercontent.com/u/12132389?v=4)](https://github.com/thettler "thettler (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

thettlersimple-states

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/thettler-simple-states/health.svg)

```
[![Health](https://phpackages.com/badges/thettler-simple-states/health.svg)](https://phpackages.com/packages/thettler-simple-states)
```

###  Alternatives

[verbb/cloner

Easily clone sections, entry types, groups and more.

25182.7k](/packages/verbb-cloner)

PHPackages © 2026

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