A PHP port of ulid/javascript with some minor improvements.
The recommended way to install the library is through Composer.
composer require robinvdvleuten/ulid
use Ulid\Ulid;
$ulid = Ulid::generate();
print $ulid; // 01B8KYR6G8BC61CE8R6K2T16HY
// Or if you prefer a lowercased output
$ulid = Ulid::generate(true);
print $ulid; // 01b8kyr6g8bc61ce8r6k2t16hy
MIT © Robin van der Vleuten