tiat / libs-uuid
MIT-licensed PHP 8.5+ UUID, UUIDv7, ULID and Base64URL codecs.
v1.0.2
2026-06-21 11:57 UTC
Requires
- php: ^8.5.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.95.10
- phpbench/phpbench: ^1.7.0
- phpstan/phpstan: ^2.2.2
- phpstan/phpstan-phpunit: ^2.0.16
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^13.2.1
- slevomat/coding-standard: ^8.29.0
- squizlabs/php_codesniffer: ^4.0.1
- tiat/libs-test: ^1.0.0
README
MIT-licensed PHP 8.5+ UUID, UUIDv7, ULID and Base64URL codecs.
This package provides:
- UUID v1-v8 validation and version detection
- UUID v7 generation
- canonical UUID string
<->16-byte binary conversion - UUID binary
<->22-character Base64URL conversion - UUID binary
<->26-character ULID/Crockford Base32 conversion - no-throw parser APIs for request, cache and routing paths
Install
composer require tiat/libs-uuid:^1.0
Versioning
The package starts at 1.0.0 and follows semantic versioning.
License
MIT