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

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

ennexa/snowflake
================

Snowflake ID Generator that does not require a daemon

v0.2.2(3y ago)0183MITPHPPHP &gt;=7.4

Since Jul 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Ennexa/snowflake)[ Packagist](https://packagist.org/packages/ennexa/snowflake)[ RSS](/packages/ennexa-snowflake/feed)WikiDiscussions master Synced yesterday

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

### Snowflake ID Generator

[](#snowflake-id-generator)

An implementation of [Snowflake](https://blog.twitter.com/engineering/en_us/a/2010/announcing-snowflake.html) ID generator that works without a dedicated daemon.

The generator can be used with `PHP-FPM` or `mod_php`.

### Installation

[](#installation)

```
composer require ennexa/snowflake

```

### Usage

[](#usage)

```
// First we need to create a store for saving the state
$store = new \Ennexa\Snowflake\Store\RedisStore(new \Redis);
// $store = new \EnnexaSnowflake\Store\FileStore('/path/to/store/state');

// Create a generator with the created store
$generator = new \EnnexaSnowflake\Generator($store, $instanceId = 0);

// Use Generator::nextId to generate the next unique id
echo $generator->nextId();

```

### Credits

[](#credits)

This generator was originally created for use on [Prokerala.com](https://www.prokerala.com).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~476 days

Total

4

Last Release

1113d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.6.0

v0.2.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2655327?v=4)[Ennexa Technologies Private Limited](/maintainers/ennexa)[@Ennexa](https://github.com/Ennexa)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[ptachoire/cssembed

Css url embed library.

191.4M36](/packages/ptachoire-cssembed)[haringsrob/livewire-datepicker

A standalone livewire datepicker component without dependencies

4116.7k](/packages/haringsrob-livewire-datepicker)

PHPackages © 2026

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