PHPackages                             xunzhibin/generator - 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. xunzhibin/generator

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

xunzhibin/generator
===================

ID generator

v0.2(7y ago)013MITPHPPHP &gt;=5.6

Since Apr 17Pushed 7y agoCompare

[ Source](https://github.com/alex-xun/generator)[ Packagist](https://packagist.org/packages/xunzhibin/generator)[ RSS](/packages/xunzhibin-generator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

ID Generator(ID 生成器)
====================

[](#id-generatorid-生成器)

Installation(安装)
----------------

[](#installation安装)

```
composer require xunzhibin/generator

```

Usage(使用)
---------

[](#usage使用)

```
require_once '../vendor/autoload.php';

use Generator\SnowFlake\SnowFlake;

$app = new SnowFlake();

echo $app->generate();

// 机器id
$workId = 1;

$app = new SnowFlake($workId);

echo $app->generate();

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

Every ~0 days

Total

2

Last Release

2579d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cfa35e5fa1400756bb1d15fa08f5a4b7b808fbd1f806eff1f09af6ed74eb555?d=identicon)[alex-xun](/maintainers/alex-xun)

---

Top Contributors

[![alex-xun](https://avatars.githubusercontent.com/u/49705422?v=4)](https://github.com/alex-xun "alex-xun (3 commits)")

### Embed Badge

![Health badge](/badges/xunzhibin-generator/health.svg)

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

###  Alternatives

[razonyang/yii2-rate-limiter

Yii2 Rate Limiter

1025.0k1](/packages/razonyang-yii2-rate-limiter)

PHPackages © 2026

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