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

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

metabor/statemachine-example
============================

Example statemachine from my talk and slides

v3.0.0(2mo ago)5711MITPHPPHP &gt;=8.2

Since Apr 30Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/Metabor/Statemachine-Example)[ Packagist](https://packagist.org/packages/metabor/statemachine-example)[ RSS](/packages/metabor-statemachine-example/feed)WikiDiscussions master Synced today

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

Statemachine-Example
====================

[](#statemachine-example)

Implementation of the [metabor/statemachine](https://github.com/Metabor/Statemachine)

What's inside?
--------------

[](#whats-inside)

The example from my talk is in the namespace Example and the slides (in german) in the docs directory. In the namespace MetaborStd are abstract types defined. These are exemplified implemented in the namespace Metabor.

1. Installing

---

### Use Composer (*recommended*)

[](#use-composer-recommended)

If you don't have Composer yet, download it following the instructions on  or just run the following command:

```
$ curl -s http://getcomposer.org/installer | php`
```

Then, use the `create-project` command to generate the statemachine-example project:

```
$ php composer.phar create-project metabor/statemachine-example:dev-master path/to/install`
```

Composer will install it and all its dependencies under the `path/to/install` directory.

### Download an Archive File

[](#download-an-archive-file)

You can also [download an archive](https://github.com/Metabor/Statemachine-Example/archive/master.zip) and unpack it somewhere under your web server root directory.

You also need to install all the necessary dependencies. Download composer (see above) and run the following command:

```
$ php composer.phar install`
```

2. Run the example project

---

As a starting point I recommend the index.php

You can run it either from the command line:

```
$ php index.php`
```

Or by using a webserver. If you run PHP 5.4 or higher you can use the builtin webserver:

```
$ php -S localhost:8000 -t path/to/install`
```

You can now access it in the webbrowser with .

To display the process a a graph, you'll have to install GraphViz (`dot` executable). Users of Debian/Ubuntu-based distributions may simply invoke `sudo apt-get install graphviz`, Windows users have to [download GraphViZ for Windows](http://www.graphviz.org/Download_windows.php) and remaining users should install from [GraphViz homepage](http://www.graphviz.org/Download.php).

You can now access the two processes with the get parameter "process": in the webbrowser.

Have fun and play with the example by changing it ;)

All Metabor libraries are released under the MIT license.

Enjoy!

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance83

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 96.4% 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 ~3996 days

Total

2

Last Release

86d ago

Major Versions

v1.1.2 → v3.0.02026-04-08

PHP version history (2 changes)v1.1.2PHP &gt;=5.3

v3.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/032eb05f6155892c43d6f15add4ecfc9dce7781506c149b6c01061dc673508d8?d=identicon)[Metabor](/maintainers/Metabor)

---

Top Contributors

[![Metabor](https://avatars.githubusercontent.com/u/2135064?v=4)](https://github.com/Metabor "Metabor (27 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

statemachineexamplestate-machine

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/workflow

Provides tools for managing a workflow or finite state machine

63045.8M264](/packages/symfony-workflow)[yohang/finite

A simple PHP Finite State Machine

1.4k3.7M10](/packages/yohang-finite)[winzou/state-machine

A very lightweight yet powerful PHP state machine

52414.0M19](/packages/winzou-state-machine)[winzou/state-machine-bundle

Bundle for the very lightweight yet powerful PHP state machine

33910.7M19](/packages/winzou-state-machine-bundle)[sebdesign/laravel-state-machine

Winzou State Machine service provider for Laravel

3431.4M1](/packages/sebdesign-laravel-state-machine)[metabor/statemachine

Statemachine in PHP 8.2+

103150.9k3](/packages/metabor-statemachine)

PHPackages © 2026

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