PHP code example of limingxinleo / x-php-snowflake
1. Go to this page and download the library: Download limingxinleo/x-php-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/ */
limingxinleo / x-php-snowflake example snippets
namespace Tests\Snowflake;
use Xin\Snowflake\Client;
class Test extends Client
{
public function getBeginAt()
{
return strtotime('2017-01-01');
}