An overview of available infrastructural code when working with any type of UID.
A list of supported UID tailored domain identifier implementations.
A UUID tailored identifier.
- Requires ramsey/uuid
<?php
use MsgPhp\Domain\Infrastructure\Uid\DomainUuid;
use Ramsey\Uuid\Uuid;
// SETUP
$id = new DomainUuid(); // a new UUID version 4 value
$id = new DomainUuid(Uuid::uuid1());
$id = DomainUuid::fromstring('00000000-0000-0000-0000-000000000000');