PHPackages                             jump2/yii2-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. jump2/yii2-snowflake

ActiveLibrary

jump2/yii2-snowflake
====================

yii2 snowflake extension

1.0.3(7y ago)0511Apache-2.0PHPPHP &gt;=5.4.0

Since Mar 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/jump2/yii2-snowflake)[ Packagist](https://packagist.org/packages/jump2/yii2-snowflake)[ RSS](/packages/jump2-yii2-snowflake/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

yii2 snowflake
==============

[](#yii2-snowflake)

yii2 snowflake extension, your have to install swoole of php extension

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require --prefer-dist jump2/yii2-snowflake "*"

```

or add

```
"jump2/yii2-snowflake": "*"

```

to the require section of your `composer.json` file.

Configuration
-------------

[](#configuration)

First of all , you have to configure the Server class in your console application configuration:

```
'snowflakeServer' => [
    'class'         => 'Snowflake\Server',
    'host'          => '0.0.0.0',
    'port'          => 5599,
    'workerId'      => 1,
    'datacenterId'  => 1
],
```

and create console controller like the file below the example directory, then run it for start the snowflake server

Next, you have to configure the Client class in your application configuration:

```
'snowflakeClient' => [
    'class'         => 'Snowflake\Client',
    'host'          => '0.0.0.0',
    'port'          => 5599
],
```

Use below code to generate id

```

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~33 days

Total

4

Last Release

2876d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/603c5373c7f9508fa312a8b0d3793cae412e2a989c4decc4d47d087ac0952cda?d=identicon)[annronwoo](/maintainers/annronwoo)

---

Top Contributors

[![leapfrog8](https://avatars.githubusercontent.com/u/129240076?v=4)](https://github.com/leapfrog8 "leapfrog8 (12 commits)")[![jump2](https://avatars.githubusercontent.com/u/3068618?v=4)](https://github.com/jump2 "jump2 (4 commits)")

### Embed Badge

![Health badge](/badges/jump2-yii2-snowflake/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)

PHPackages © 2026

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