PHPackages                             j92z/flow-condition-node - 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. j92z/flow-condition-node

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

j92z/flow-condition-node
========================

flow &amp; condition &amp; node

v1.0(5y ago)011MITPHPPHP &gt;=7.1

Since Mar 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/j92z/flow-condition-node)[ Packagist](https://packagist.org/packages/j92z/flow-condition-node)[ RSS](/packages/j92z-flow-condition-node/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

#### 流程节点条件判断引擎

[](#流程节点条件判断引擎)

```
composer require j92z/flow-condition-node

```

```
require __DIR__ . '/vendor/autoload.php';

use J92z\Flow\Condition\Node;

$info = [
    [
        'ruleUnit' => [
            'ruleUnit' => [
                [
                    'field'   => 'a',
                    'compare' => '=',
                    'value'   => 2,
                ],
                [
                    'field'   => 'b',
                    'compare' => '>',
                    'value'   => 5,
                ]
            ],
            'relation' => 'and',
        ],
        'priority' => 1,
        'result'   => [
            'to' => "李四",
        ],
    ],
    [
        'ruleUnit' => [
            'ruleUnit' => [
                [
                    'field'   => 'a',
                    'compare' => '=',
                    'value'   => 1,
                ],
                [
                    'field'   => 'b',
                    'compare' => '>',
                    'value'   => 4,
                ]
            ],
            'relation' => 'or',
        ],
        'priority' => 2,
        'result'   => [
            'to' => "张三",
        ],
    ],
    [
        'ruleUnit' => [
            'ruleUnit' => [
                [
                    'field'   => 'a',
                    'compare' => '=',
                    'value'   => 1,
                ],
                [
                    'field'   => 'b',
                    'compare' => '>',
                    'value'   => 4,
                ]
            ],
            'relation' => 'and',
        ],
        'priority' => 3,
        'result'   => [
            'to' => "王五",
        ],
    ],
    [
        'ruleUnit' => [
            'ruleUnit' => [
                [
                    'field'   => 'a',
                    'compare' => '=',
                    'value'   => 1,
                ],
                [
                    'ruleUnit' => [
                        [
                            'field'   => 'c',
                            'compare' => '=',
                            'value'   => 2,
                        ],
                        [
                            'field'   => 'd',
                            'compare' => '=',
                            'value'   => 5,
                        ]
                    ],
                    'relation' => 'and',
                ]
            ],
            'relation' => 'and',
        ],
        'priority' => 4,
        'result'   => [
            'to' => "赵六",
        ],
    ],
];

$resource = [
    "a" => 1,
    "b" => 4,
    "c" => 2,
    "d" => 5
];

$json = Node::create($info)->toJson();

var_dump($json);

$node = Node::create($json, $resource);

var_dump($node->getMatch());

var_dump($node->getMatchResult(false));

var_dump($node->getMatchResult());

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1872d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/45961811?v=4)[j92z](/maintainers/j92z)[@j92z](https://github.com/j92z)

---

Top Contributors

[![j92z](https://avatars.githubusercontent.com/u/45961811?v=4)](https://github.com/j92z "j92z (5 commits)")

### Embed Badge

![Health badge](/badges/j92z-flow-condition-node/health.svg)

```
[![Health](https://phpackages.com/badges/j92z-flow-condition-node/health.svg)](https://phpackages.com/packages/j92z-flow-condition-node)
```

PHPackages © 2026

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