PHPackages                             iflow/helper - 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. iflow/helper

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

iflow/helper
============

iflowHelper

v0.0.1(1y ago)0302MulanPSL-2.0PHPPHP &gt;=8.1.0

Since Nov 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/luotianyil/iflow_helper)[ Packagist](https://packagist.org/packages/iflow/helper)[ RSS](/packages/iflow-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (2)

iflow\_helper
=============

[](#iflow_helper)

一些工具类

安装
==

[](#安装)

```
composer require iflow/helper
```

使用方法
====

[](#使用方法)

```
use iflow\Helper\Str\Str;
use iflow\Helper\Torrent\Lightbenc;

// 生成雪花id
Str::genSnowFlake();

// 解析 BT
Lightbenc::bdecode_getinfo('文件地址');

// 集合监听
$watch = new CollectionProxy([
    'info' => [
        'query' => [
            'user' => 123
        ]
    ]
]);

$watch -> setWatch('info.query.user', function ($newValue) {
    var_dump("这是监听回调 ：\n 最新值为：");
    var_dump($newValue);
});

// 如果定义了监听事件 info.query.user 那么 修改 user 值时
// info 监听事件不会触发 如果定义的 对调 handle 为 class 那么需实现
// iflow\Helper\Arr\CollectionProxy\interfaces\WatchInterface 接口
$watch -> setWatch('info', [
    'handle' => function ($newValue) {
        var_dump("这是监听回调 ：\n 最新值为：");
        var_dump($newValue);
    }
]);

$watch -> offsetSet('info.query.user', [
    'uid' => 1,
    'name' => 123
]);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance43

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

545d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d25b62271bcaef304dce7dcb02951de015980b87e5129f440b8d11758d4e86b?d=identicon)[洛水天依](/maintainers/%E6%B4%9B%E6%B0%B4%E5%A4%A9%E4%BE%9D)

---

Top Contributors

[![luotianyil](https://avatars.githubusercontent.com/u/43297170?v=4)](https://github.com/luotianyil "luotianyil (9 commits)")

### Embed Badge

![Health badge](/badges/iflow-helper/health.svg)

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

###  Alternatives

[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)[jimbojsb/workman

PHP process forking &amp; daemonizing library

608.8k](/packages/jimbojsb-workman)

PHPackages © 2026

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