PHP code example of bradietilley / php-snowflake

1. Go to this page and download the library: Download bradietilley/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/ */

    

bradietilley / php-snowflake example snippets


use BradieTilley\Snowflake\Snowflake;

Snowflake::configure('2025-01-01 00:00:00', cluster: 1, worker: 1);

echo Snowflake::id(); // 9048372019229466888
bash
composer