~/docs
Resonate
Resonate
3.x 3.0.0, current
ULID
Toggle sidebar
ULID
webpatser/ulid 3.0.0

ULID 3.x

Upgrade Guide

What changes when you move from webpatser/ulid 2.x to 3.0, including the PHP 8.6 requirement.

Version 3.0.0 raises the PHP requirement. src/Ulid.php is identical between 2.0.1 and 3.0.0, so the public API and behavior are unchanged.

PHP 8.6

composer.json now requires "php": "^8.6". PHP 8.5 is no longer supported. On PHP 8.5, stay on 2.x.

composer require webpatser/ulid:^3.0

Changes since 2.0.1

Area Change
Requirement PHP ^8.6, was ^8.5
Dependency webpatser/uuid ^3.0, was ^2.0
Dev dependency pestphp/pest ^5.0 (Pest 4 does not install on PHP 8.6)
CI Runs on PHP 8.6
Public API No change

Warning: webpatser/uuid moves to 3.x as well. If your project requires webpatser/uuid directly, allow ^3.0. See the uuid documentation.

Changes that arrived in 2.0.1

If you come from 2.0.0, one fix applies: the monotonic counter now throws a RuntimeException on overflow instead of silently wrapping, so a ULID is never emitted out of order within a millisecond.