Download the PHP package componenta/identity without Composer
On this page you can find all versions of the php package componenta/identity. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download componenta/identity
More information about componenta/identity
Files in componenta/identity
Package identity
Short Description Identity contracts and immutable identities for Componenta
License MIT
Informations about the package identity
Componenta Identity
UUID value objects and generators for domain identities.
Installation
The package declares Componenta\Identity\ConfigProvider in extra.componenta.config-providers.
When componenta/composer-plugin is installed, the provider is added to the generated provider list automatically.
Requirements
- PHP 8.4+
- 64-bit PHP runtime for
UuidFactory componenta/config ^3.0for the shippedConfigProvider
Related Packages
| Package | Why it matters here |
|---|---|
componenta/policy |
Uses IdentityInterface for actors and owned resources. |
componenta/cqrs |
Operation uses UUIDs as operation identifiers. |
componenta/di |
Registers UuidFactoryInterface through ConfigProvider. |
componenta/uuid |
Optional legacy Ramsey compatibility. Require it explicitly if your application still uses it; Identity no longer installs it. |
What It Provides
UuidInterface: minimal identity contract with string conversion and equality.RfcUuidInterface: UUID contract withbytes,version, andvariantproperties.Uuid: immutable RFC UUID value object backed by 16 raw bytes.UuidFactoryInterface: generation/from-bytes contract.UuidFactory: UUID v1, v3, v4, v5, v6, v7, and v8 generator.UuidNamespace: standard namespaces for name-based UUIDs.
UUID Value Object
Uuid::fromString() accepts uppercase input and normalizes output to lowercase canonical form.
Equality
Domain code should usually depend on UuidInterface. Infrastructure that needs raw bytes or version inspection can depend on RfcUuidInterface.
UUID Factory
Name-based UUIDs are deterministic for the same namespace and name.
DI Registration
ConfigProvider registers UuidFactoryInterface as a factory returning UuidFactory.