PHPackages                             shrink0r/workflux - 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. shrink0r/workflux

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

shrink0r/workflux
=================

Finite state machine for php.

1.0.0(9y ago)375.6k3[3 issues](https://github.com/shrink0r/workflux/issues)1MITPHPPHP ^7.0

Since Oct 7Pushed 6y ago7 watchersCompare

[ Source](https://github.com/shrink0r/workflux)[ Packagist](https://packagist.org/packages/shrink0r/workflux)[ Docs](https://github.com/shrink0r/workflux)[ RSS](/packages/shrink0r-workflux/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (14)Versions (20)Used By (1)

workflux
========

[](#workflux)

[![Latest-Stable-Version](https://camo.githubusercontent.com/a0c8c609afa38c55367cdd77f14ac64a58d657bc2cbaedff5ab5240449af1afd/68747470733a2f2f706f7365722e707567782e6f72672f736872696e6b30722f776f726b666c75782f762f737461626c652e737667)](https://packagist.org/packages/shrink0r/workflux "shrink0r/workflux on packagist")[![License](https://camo.githubusercontent.com/ab69e26321cda71f1fb7c473527b504a006e5ffd72a8b09632a8406b0a2d42c2/68747470733a2f2f706f7365722e707567782e6f72672f736872696e6b30722f776f726b666c75782f6c6963656e73652e737667)](LICENSE.md "license file with full text of the license")[![Latest Unstable Version](https://camo.githubusercontent.com/061a02a876e2b41ff4891ab10634b213cf371c5ef4d78bccda458cabc2649bef/68747470733a2f2f706f7365722e707567782e6f72672f736872696e6b30722f776f726b666c75782f762f756e737461626c652e737667)](https://packagist.org/packages/shrink0r/workflux "shrink0r/workflux on packagist")[![Build Status](https://camo.githubusercontent.com/fe7eb4df2289db04806136273aa141d14f1daf9164c62de0e0a4fcafc8074dc1/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f736872696e6b30722f776f726b666c75782e706e67)](http://travis-ci.org/shrink0r/workflux "shrink0r/workflux on travis-ci")[![Coverage Status](https://camo.githubusercontent.com/b65e611b80c37dad71d6705f51c07cfefa2cc3601ed841fdfd919a744d8ea2b5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f736872696e6b30722f776f726b666c75782f62616467652e706e67)](https://coveralls.io/r/shrink0r/workflux "shrink0r/workflux on coveralls")[![Code Climate](https://camo.githubusercontent.com/2e9509eec5799683cf67047a05716456b222fbfc29699af0030005bc4315a3e4/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f736872696e6b30722f776f726b666c75782f6261646765732f6770612e737667)](https://codeclimate.com/github/shrink0r/workflux)[![Dependency Status](https://camo.githubusercontent.com/72c04d4fdaf7c544175b3d61e73f3c8ddc41c38298c3e15b1ad6d065e99823a5/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3534326461353231666333663563613432373030303239392f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/576dcc347bc681004a3f9b68 "shrink0r/workflux on versioneye")[![Stories in Ready](https://camo.githubusercontent.com/619333233cb283517b97d4b31a227834e68fa8dedeb84dbb339e4721380ec0e3/68747470733a2f2f62616467652e776166666c652e696f2f736872696e6b30722f776f726b666c75782e706e673f6c6162656c3d7265616479267469746c653d5265616479)](https://waffle.io/shrink0r/workflux "shrink0r/workflux on waffle")[![Total Composer Downloads](https://camo.githubusercontent.com/658a817a702bd764a2e43b0868767d64b9f7c64f83ad5956e4e2fdfb0ef16036/68747470733a2f2f706f7365722e707567782e6f72672f736872696e6b30722f776f726b666c75782f642f746f74616c2e706e67)](https://packagist.org/packages/shrink0r/workflux "shrink0r/workflux on packagist")

Purpose
-------

[](#purpose)

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

Good reads on the topic:

- [Why developers should be force-fed state machines](http://www.shopify.com/technology/3383012-why-developers-should-be-force-fed-state-machines)
- [Why Developers Never Use State Machines](http://www.skorks.com/2011/09/why-developers-never-use-state-machines/)

Requirements and installation
-----------------------------

[](#requirements-and-installation)

- PHP 7.0+

Install the library via [Composer](http://getcomposer.org/):

`./composer.phar require shrink0r/worklfux [optional version]`

Adding it manually as a vendor library requirement to the `composer.json` file of your project works as well:

```
{
    "require": {
        "shrink0r/worklfux": "^1.0"
    }
}
```

Alternatively, you can download a release archive from the [available releases](https://github.com/shrink0r/worklfux/releases) page.

Documentation
-------------

[](#documentation)

tbd.

Community
---------

[](#community)

None, but you may join the freenode IRC `#honeybee` channel or  anytime. :-)

Contributors
------------

[](#contributors)

Please contribute by [forking](http://help.github.com/forking/) and sending a [pull request](http://help.github.com/pull-requests/). More information can be found in the [`CONTRIBUTING.md`](CONTRIBUTING.md) file. The authors and contributors are mentioned in the [github contributors graph](https://github.com/shrink0r/workflux/graphs/contributors) of this repository.

The code tries to adhere to the following PHP-FIG standards: [PSR-4](http://www.php-fig.org/psr/psr-4/ "PSR-4 Autoloading Standard"), [PSR-1](http://www.php-fig.org/psr/psr-1/ "PSR-1 Basic Coding Standard") and [PSR-2](http://www.php-fig.org/psr/psr-2/ "PSR-2 Coding Style Guide").

Changelog
---------

[](#changelog)

See [`CHANGELOG.md`](CHANGELOG.md) for more information about changes.

License
-------

[](#license)

This project is MIT licensed. See the [linked license](LICENSE.md) for details.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~123 days

Recently: every ~257 days

Total

17

Last Release

2272d ago

Major Versions

0.5.3 → 1.0.02016-12-09

PHP version history (4 changes)0.1.0PHP &gt;=5.5.0

1.0.0PHP ^7.0

0.5.5PHP &gt;=5.6.0

0.6.0PHP &gt;=7.2

### Community

Maintainers

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

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

---

Top Contributors

[![shrink0r](https://avatars.githubusercontent.com/u/202678?v=4)](https://github.com/shrink0r "shrink0r (227 commits)")[![graste](https://avatars.githubusercontent.com/u/203540?v=4)](https://github.com/graste "graste (9 commits)")[![MrHash](https://avatars.githubusercontent.com/u/390925?v=4)](https://github.com/MrHash "MrHash (6 commits)")

---

Tags

workflowfsmstate-machineworkflux

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/shrink0r-workflux/health.svg)

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

###  Alternatives

[phpmentors/workflower

A BPMN 2.0 workflow engine for PHP

70652.9k4](/packages/phpmentors-workflower)[pwm/s-flow

A lightweight library for defining state machines

742.5k](/packages/pwm-s-flow)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

188.5k](/packages/tarfin-labs-event-machine)[ringierimu/state-workflow

Laravel State Workflow provide tools for defining and managing workflows and activities with ease.

3251.1k](/packages/ringierimu-state-workflow)[phpmentors/stagehand-fsm

A finite state machine

361.1k](/packages/phpmentors-stagehand-fsm)

PHPackages © 2026

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