Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 791 Bytes

uid.md

File metadata and controls

32 lines (20 loc) · 791 Bytes

Unique Identifier

An overview of available infrastructural code when working with any type of UID.

Domain Identifier

A list of supported UID tailored domain identifier implementations.

MsgPhp\Domain\Infrastructure\Uid\DomainUuid

A UUID tailored identifier.

Basic Example

<?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');