2017 © Pedro Peláez
 

library x-php-snowflake

snowflake 64位自增ID算法

image

limingxinleo/x-php-snowflake

snowflake 64位自增ID算法

  • Thursday, January 4, 2018
  • by limingxinleo
  • Repository
  • 1 Watchers
  • 5 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 9 % Grown

The README.md

x-php-snowflake

snowflake 64位自增ID算法, (*1)

安装

composer require limingxinleo/x-php-snowflake

使用

  • 实现自己的Id类
<?php 
namespace Tests\Snowflake;

use Xin\Snowflake\Client;

class Test extends Client
{
    public function getBeginAt()
    {
        return strtotime('2017-01-01');
    }
}
  • 调用
<?php

$id = Test::getInstance()->id(1, 1);

The Versions

04/01 2018

dev-master

9999999-dev

snowflake 64位自增ID算法

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar limingxinleo

php snowflake

04/01 2018

1.0.2

1.0.2.0

snowflake 64位自增ID算法

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar limingxinleo

php snowflake

11/12 2017

1.0.1

1.0.1.0

snowflake 64位自增ID算法

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar limingxinleo

php snowflake

11/12 2017

1.0.0

1.0.0.0

snowflake 64位自增ID算法

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar limingxinleo

php snowflake

21/11 2017

0.0.1

0.0.1.0

snowflake 64位自增ID算法

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar limingxinleo

php snowflake