imdgr886/snowflake

There is no license information available for the latest version (0.1.2) of this package.

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/imdgr886/snowflake

0.1.2 2021-11-19 09:37 UTC

This package is auto-updated.

Last update: 2025-09-10 13:33:02 UTC


README

Simple snowflake for laravel. Support at least 200 years.

This library removed Worker ID. Instead, use redis process sequence index.

default requements:

  • redis

QUIKE START

INSTALL

composer require imdgr886/snowflake

USAGE

use Imdgr886\Snowflake\Facades\Snowflake;

//...

Snowflake::id();

Custom

php artisan vendor:publish --tag=snowflake

then edit config/snowflake.php