imdgr886/snowflake

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

0.1.2 2021-11-19 09:37 UTC

This package is auto-updated.

Last update: 2024-11-10 11:39:51 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