PHPinnacle ULID

Latest Version on Packagist Total Downloads Software License

Pure PHP ulid implementation with binary encoding support.

Install

Via Composer

$ composer require phpinnacle/ulid

Basic Usage

<?php

use PHPinnacle\Ulid\Generator;

echo Generator::now();
echo Generator::fromDateTime(new \DateTimeImmutable('2019-01-22 23:33:45'));
echo Generator::fromTimestamp(1566310070);

Testing

$ composer test

Benchmarks

We run benchmarks as follow:

$ composer bench

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email dev@phpinnacle.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.