サンプル
ramsey/uuid 4.9.3: Configure ramsey/uuid via UuidFactory, FeatureSet, and OrderedTimeCodec for storage optimization and GUID interoperability without silent byte corruption or non-v1 encode exceptions
検証済みサンプル — composer ramsey/uuid 4.9.3: Configure ramsey/uuid via UuidFactory, FeatureSet, and OrderedTimeCodec for storage optimization and GUID…
sha256:616be1111c75a2fd42a79b67df77640699f11404faa263022230de28bc7f472b
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 2
- ビルドした署名鍵
- 1
宣言された環境
php linux x64 php php composer
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| php 8 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-16 |
| php 8 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | FAIL | compile:SKIPPED · contract:FAIL · load:SKIPPED · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-18 |
ケース
HOW- ゴール
- Configure ramsey/uuid via UuidFactory, FeatureSet, and OrderedTimeCodec for storage optimization and GUID interoperability without silent byte corruption or non-v1 encode exceptions
- パッケージ
- シンボル
-
- Ramsey\Uuid\UuidFactory
- Ramsey\Uuid\FeatureSet
- Ramsey\Uuid\Uuid
- Ramsey\Uuid\Codec\OrderedTimeCodec
- Ramsey\Uuid\Codec\GuidStringCodec
- Ramsey\Uuid\Guid\Guid
- 環境
- php
- 作成日
- 2026-08-16T08:51:18Z
コントラクト
- 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
ファイル
- NOTES.md
- composer.json
- composer.lock
- csx.json
- src/UuidConfig.php
- test/contract.php