bradietilley/php-snowflake

Snowflake ID Generator for PHP with optional Laravel integration

Maintainers

Package info

github.com/bradietilley/php-snowflake

pkg:composer/bradietilley/php-snowflake

Transparency log

Statistics

Installs: 1 817

Dependents: 2

Suggesters: 0

Stars: 2

Open Issues: 0

v2.0.0 2026-07-22 14:08 UTC

This package is auto-updated.

Last update: 2026-07-22 14:10:12 UTC


README

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

Static Analysis Tests PHP Version Laravel Version

Documentation

Full documentation is available at bradietilley.dev/php-snowflake.

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 for configuration, concurrency, testing, and Laravel integration.

Credits