Ejemplo
Configure ramsey/uuid via UuidFactory, FeatureSet, and OrderedTimeCodec for storage optimization and GUID interoperability without silent byte corruption or non-v1 encode exceptions
sha256:616be1111c75a2fd42a79b67df77640699f11404faa263022230de28bc7f472b
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Configure ramsey/uuid via UuidFactory, FeatureSet, and OrderedTimeCodec for storage optimization and GUID interoperability without silent byte corruption or non-v1 encode exceptions HOW
- Paquetes
- ramsey/uuid 4.9.3
- Entorno
- php
- Creado
- 2026-08-16T08:51:18Z
Contrato
- assert default Uuid::fromString returns LazyUuidFromString optimization while Uuid::setFactory disables lazy proxying
- assert FeatureSet with ignoreSystemNode forces RandomNodeProvider with RFC 4122 multicast bit set to 1
- assert OrderedTimeCodec encodes identical RFC 4122 string format while reordering binary bytes with time_hi in high-order positions
- assert OrderedTimeCodec::encodeBinary rejects non-v1 UUIDs with InvalidArgumentException
- assert OrderedTimeCodec::decodeBytes rejects non-v1 byte strings with UnsupportedOperationException
- assert decoding ordered binary bytes with standard StringCodec silently corrupts UUID version and timestamp fields
- assert FeatureSet with useGuids configures GuidStringCodec with little-endian byte ordering for time fields
- assert GuidStringCodec decodes GUID strings into Ramsey\Uuid\Guid\Guid with Microsoft-compatible byte layout
- assert resetting global UuidFactory restores default RFC 4122 big-endian encoding and LazyUuidFromString optimization
Archivos
- NOTES.md
- composer.json
- composer.lock
- csx.json
- src/UuidConfig.php
- test/contract.php
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9