PHPackages                             chunkwan/workflow-reviser - 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. [Framework](/categories/framework)
4. /
5. chunkwan/workflow-reviser

ActiveSymfony-bundle[Framework](/categories/framework)

chunkwan/workflow-reviser
=========================

Symfony Workflow transition Guard rules

v0.2.4(5y ago)2211MITPHPPHP &gt;=7.2.5

Since Dec 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/chunkwan/workflow-reviser)[ Packagist](https://packagist.org/packages/chunkwan/workflow-reviser)[ RSS](/packages/chunkwan-workflow-reviser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Workflow Reviser
================

[](#workflow-reviser)

The WorkflowReviser integrates simple transition conditions into the Symfony Workflow component. This means easy-to-implement and feature-rich transition checks in your Symfony application!

Example:
--------

[](#example)

```
// config/packages/workflow.php
// Reknil\WorkflowReviser\Component\TransitionRule\CountEqual;
// Reknil\WorkflowReviser\Component\TransitionRule\NotNull;
// Reknil\WorkflowReviser\Component\WorkflowReviser;

$container->loadFromExtension('framework', [
    // ...
    'workflows' => [
        'blog_publishing' => [
            'supports' => [BlogPost::class],
            // ...
            'places' => [
                'draft',
                'reviewed',
                'rejected',
                'published',
            ],
            'transitions' => [
                'to_review' => [
                    'from' => 'draft',
                    'to' => 'review',
                    'metadata' => [
                        # The transition is allowed only if the all check is success:
                        # Title and Short Description is filled - NotNull
                        # Quantity of images for post equal two - CountEqual
                        # Comments for post more then 5 - CountMore
                        WorkflowReviser::class => [
                            NotNull::class => [
                                // you can pass one or more property (field) of entity class
                                'title' => "Title cannot be blank",
                                'shortDescription' => "Short Description must be filled",
                            ],
                            CountEqual::class => [
                                'images' => [2, ' Quantity of images for post must be two'],
                            ],
                            CountMore::class => [
                                'comments' => [5, ' Comments for post must be more then 5'],
                            ],
                        ],
                    ],
                ],
                // ...
            ],
        ],
    ],
]);
```

TransitionRule List:
--------------------

[](#transitionrule-list)

#### DateTime:

[](#datetime)

```
// ...
DateTimeEqual::class => [
    'createdAt' => [new \DateTime('2020-12-15T15:03:00'), 'Datetime must be equal!'],
],
DateTimeUntil::class => [
    'createdAt' => [new \DateTime('2020-12-15T15:03:00'), 'Datetime must be untill!'],
],
DateTimeBefore::class => [
    'createdAt' => [new \DateTime('2020-12-15T15:03:00'), 'Datetime must be before!'],
],
// ...
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 81.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 ~4 days

Total

2

Last Release

1960d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c0e03257e3b6f6347c967d8a16a7ce010f4cecae6b7a7d989c702c5e919d35f?d=identicon)[Reknil](/maintainers/Reknil)

---

Top Contributors

[![chunkwan](https://avatars.githubusercontent.com/u/10024016?v=4)](https://github.com/chunkwan "chunkwan (9 commits)")[![MaxPronin123](https://avatars.githubusercontent.com/u/57519963?v=4)](https://github.com/MaxPronin123 "MaxPronin123 (2 commits)")

---

Tags

symfonysymfony-bundlesymfony-componentsymfony-workflowworkflow

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/chunkwan-workflow-reviser/health.svg)

```
[![Health](https://phpackages.com/badges/chunkwan-workflow-reviser/health.svg)](https://phpackages.com/packages/chunkwan-workflow-reviser)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.7k3.7M389](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)

PHPackages © 2026

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