This library implements the K-Sortable Globally Unique IDs from Segment. See also the article called A Brief History of the UUID. KSUID is for K-Sortable Unique IDentifier. It’s a way to generate globally unique IDs similar to RFC 4122 UUIDs, but contain a time component so they can be “roughly” sorted by time of creation. The remainder of the KSUID is randomly generated bytes. Install Install with composer. $ composer require tuupola/ksuid This branch requires PHP 7.1 or up. The older ...