PHPackages                             ericliucn/laravel-snowflake - 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. ericliucn/laravel-snowflake

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

ericliucn/laravel-snowflake
===========================

分布式Id生成，基于雪花算法的laravel包

1.0.1(4y ago)1481MITPHPPHP &gt;=7.0.0

Since Apr 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/EricLiuCN/laravel-snowflake)[ Packagist](https://packagist.org/packages/ericliucn/laravel-snowflake)[ RSS](/packages/ericliucn-laravel-snowflake/feed)WikiDiscussions main Synced today

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

laravel-snowflake
=================

[](#laravel-snowflake)

### 安装

[](#安装)

```
composer require ericliucn/laravel-snowflake:"dev-master"

```

### 生成配置

[](#生成配置)

```
php artisan vendor:publish --provider="Ericliucn\LaravelSnowflake\Providers\SnowflakeServiceProvider"

```

### 引入

[](#引入)

```
use Ericliucn\LaravelSnowflake\Snowflake;

$sn = new Snowflake();
$id = $sn->nextId();

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

1490d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a4da084b4158f44859316ff0c3ec89a570a605b365325f0763988ada6dd805e?d=identicon)[EricLiuCN](/maintainers/EricLiuCN)

---

Top Contributors

[![EricLiuCN](https://avatars.githubusercontent.com/u/17755298?v=4)](https://github.com/EricLiuCN "EricLiuCN (1 commits)")

### Embed Badge

![Health badge](/badges/ericliucn-laravel-snowflake/health.svg)

```
[![Health](https://phpackages.com/badges/ericliucn-laravel-snowflake/health.svg)](https://phpackages.com/packages/ericliucn-laravel-snowflake)
```

###  Alternatives

[mirazmac/dotenvwriter

A PHP library to write values to .env (DotEnv) files

19129.3k7](/packages/mirazmac-dotenvwriter)[joegreen0991/config

Config component based on laravel's

233.3k](/packages/joegreen0991-config)

PHPackages © 2026

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