PHPackages                             gupalo/bpmnworkflow - 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. gupalo/bpmnworkflow

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

gupalo/bpmnworkflow
===================

BPMN Workflow

v1.0.21(4y ago)0291GPL-3.0-onlyPHPPHP &gt;=8.1

Since Apr 18Pushed 4y ago2 watchersCompare

[ Source](https://github.com/gupalo/bpmnworkflow)[ Packagist](https://packagist.org/packages/gupalo/bpmnworkflow)[ RSS](/packages/gupalo-bpmnworkflow/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (24)Used By (1)

BpmnWorkflow
============

[](#bpmnworkflow)

Install
-------

[](#install)

```
composer require gupalo/bpmnworkflow
```

Example
-------

[](#example)

Register extension

```
    $walker = new ProcessWalker(new ExtensionHandler([
        new DiscountProcedure(),
        new WithoutDiscountProcedure(),
        new PriceFunction(),
        new LocaleFunction(),
        new EqValueComparison(),
        new LessValueComparison(),
        new MoreValueComparison(),
    ]));
```

Loader bpmn

```
    $loader = (new BpmnDirLoader(__DIR__ . '/../BpmnDiagrams')
```

Context

```
    $cart = new Example\Cart\Cart(
        items: ['name' => 'cola', 'price' => 800],
        locale: 'en',
        price: 800,
    );
    $context = new DataContext($cart);
```

Walker

```
    $workflow = new Workflow($loader, $walker);
    $this->workflow->walk('cart_discount', $context);
```

Test
----

[](#test)

For test in main app need install require-dev dependency

```
composer require phpunit/phpunit --dev
```

Add to composer.json autoload-dev section

```
"autoload-dev": {
    "psr-4": {
        "Gupalo\\BpmnWorkflow\\Tests\\": "vendor/gupalo/bpmnworkflow/tests/"
    }
}
```

Execute

```
composer dump-autoload
php vendor/bin/phpunit vendor/gupalo/bpmnworkflow
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~1 days

Total

22

Last Release

1555d ago

### Community

Maintainers

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

---

Top Contributors

[![luchaninov](https://avatars.githubusercontent.com/u/3829796?v=4)](https://github.com/luchaninov "luchaninov (2 commits)")[![andriyleshko](https://avatars.githubusercontent.com/u/1693543?v=4)](https://github.com/andriyleshko "andriyleshko (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gupalo-bpmnworkflow/health.svg)

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

###  Alternatives

[aertmann/history

An improved history backend module for Neos

1076.4k](/packages/aertmann-history)[pixelfederation/circuit-breaker-bundle

An analogous bundle to Java's Hystrix in PHP world.

1229.7k](/packages/pixelfederation-circuit-breaker-bundle)

PHPackages © 2026

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