componenta/uuid
Composer 安装命令:
composer require componenta/uuid
包简介
UUID value objects and generators for Componenta
README 文档
README
Compatibility DI provider for Ramsey UUID.
This package exists for projects that still need Ramsey's UuidFactoryInterface registered through Componenta configuration. New domain code should prefer componenta/identity and depend on Componenta\Identity\UuidInterface or Componenta\Identity\UuidFactoryInterface.
Installation
composer require componenta/uuid
Requirements
- PHP 8.4+
ramsey/uuid- Componenta config/DI integration when used through a container
Related Packages
| Package | Why it matters here |
|---|---|
ramsey/uuid |
This package registers Ramsey UuidFactoryInterface. |
componenta/config |
ConfigProvider returns dependency metadata. |
componenta/di |
Consumes the registered Ramsey UUID factory. |
componenta/identity |
Preferred package for new Componenta UUID value objects and generators. |
What It Provides
Componenta\Uuid\ConfigProvider registers Ramsey's UuidFactoryInterface factory:
use Componenta\Uuid\ConfigProvider; use Ramsey\Uuid\UuidFactoryInterface; $config = (new ConfigProvider())(); $factory = $config['dependencies']['factories'][UuidFactoryInterface::class]; $uuidFactory = $factory();
Boundary
The package does not define a Componenta UUID value object. It is a compatibility provider only. Prefer componenta/identity for framework-level identity contracts and domain UUID abstractions.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-14