Welcome to use php-snowflake
php-snowflake is an ID Generator which implemented as PHP Extension, based on Snowflake Algorithm (Twitter announced).
Installation
$ phpize
$ ./configure
$ make
$ make test
$ make install
add to php.ini
extension="snowflake.so"
snowflake.node_id = 1
snowflake.epoch = 1402160300000
Functions list
- snowflake_next_id()
- snowflake_explain()
TODO list
- support 32bit environment