robinvdvleuten/ulid library
- Add
robinvdvleuten/ulid
library tocomposer.json
file:
"require": {
"robinvdvleuten/ulid": "^5.0"
}
- Install library from the command line:
composer install
- Generate ULID:
<?php
require_once __DIR__.'/vendor/autoload.php';
use Ulid\Ulid;
$ulidStr = (string) Ulid::generate();
echo $ulidStr;
Leave a Comment
Cancel reply