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

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

bradietilley/php-snowflake
==========================

Snowflake ID Generator for PHP with optional Laravel integration

v2.0.0(3w ago)21.9k↓34.8%1MITPHPPHP ^8.4CI passing

Since Jan 31Pushed 3w ago1 watchersCompare

[ Source](https://github.com/bradietilley/php-snowflake)[ Packagist](https://packagist.org/packages/bradietilley/php-snowflake)[ RSS](/packages/bradietilley-php-snowflake/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (10)Versions (4)Used By (1)

PHP Snowflake
=============

[](#php-snowflake)

Snowflake IDs in PHP, with optional first-class Laravel integration.

[![Static Analysis](https://github.com/bradietilley/php-snowflake/actions/workflows/static.yml/badge.svg)](https://github.com/bradietilley/php-snowflake/actions/workflows/static.yml/badge.svg)[![Tests](https://github.com/bradietilley/php-snowflake/actions/workflows/tests.yml/badge.svg)](https://github.com/bradietilley/php-snowflake/actions/workflows/tests.yml/badge.svg)[![PHP Version](https://camo.githubusercontent.com/8a0a221dc39a103ef0e073c685a966c64219dba011234d99187a76a68be4a7fd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50485025323056657273696f6e2d254532253839254135382e342d344635423933)](https://camo.githubusercontent.com/8a0a221dc39a103ef0e073c685a966c64219dba011234d99187a76a68be4a7fd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50485025323056657273696f6e2d254532253839254135382e342d344635423933)[![Laravel Version](https://camo.githubusercontent.com/83c7a26073579937b1d321ce410dee32222ce5479f603100455d0034e8a1b1cb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c25323056657273696f6e2d31332e782d463933323243)](https://camo.githubusercontent.com/83c7a26073579937b1d321ce410dee32222ce5479f603100455d0034e8a1b1cb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c25323056657273696f6e2d31332e782d463933323243)

Documentation
-------------

[](#documentation)

Full documentation is available at [bradietilley.dev/php-snowflake](https://bradietilley.dev/php-snowflake).

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

[](#installation)

```
composer require bradietilley/php-snowflake
```

```
use BradieTilley\Snowflake\Snowflake;

Snowflake::configure('2025-01-01 00:00:00', cluster: 1, worker: 1);

echo Snowflake::id(); // 9048372019229466888
```

See the [documentation](https://bradietilley.dev/php-snowflake) for configuration, concurrency, testing, and Laravel integration.

Credits
-------

[](#credits)

- [Bradie Tilley](https://github.com/bradietilley)

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance94

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Total

3

Last Release

26d ago

Major Versions

v1.0.1 → v2.0.02026-07-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44430471?v=4)[Bradie Tilley](/maintainers/bradietilley)[@bradietilley](https://github.com/bradietilley)

---

Top Contributors

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

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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