PHP code example of jisheng100 / snowflake
1. Go to this page and download the library: Download jisheng100/snowflake library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jisheng100 / snowflake example snippets
$id = \Jisheng100\Snowflake\Snowflake::instance()->generateId();
$detail = \Jisheng100\Snowflake\Snowflake::instance()->parseId($id);