Registry / utility / hyperf-snowflake

hyperf-snowflake

JSON →
library3.1.63phppackagistunverified

A snowflake ID generation library for distributed systems, providing unique, time-sortable IDs.

composer require hyperf/snowflake
INSTALL
IMPORT
SIG · HYPERF-SNOWFLAKE
H
hyperf-snowflake
utilityphpv3.1.63
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Snowflake
✓ use Hyperf\Snowflake\Snowflake;

Generate a unique snowflake ID.

use Hyperf\Snowflake\Snowflake; $snowflake = new Snowflake(); $id = $snowflake->id(); echo $id;
Debug
Known issues
gotchaRequires PHP 7.2+ and Hyperf framework context.
fix
Use within Hyperf application or configure standalone.
affects: <3.0.0
Upgrade
Version history
3.1.63latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
hyperf-snowflake — pip install hyperf-snowflake · libregistry