Installation
You can install the DomainFlow\Uuid
package using Composer:
composer require domainflow/uuid
📦 Usage​
After installation, you can import and use the classes like this:
use DomainFlow\Uuid\UuidV4;
$uuid = UuidV4::generate(); // generates a new UUID v4
echo (string) $uuid;
Or use the Inspector
utility to analyze UUIDs:
use DomainFlow\Uuid\Inspector;
$inspector = Inspector::analyze('f47ac10b-58cc-4372-a567-0e02b2c3d479');
echo $inspector->version(); // Output: 4
That’s it — you’re ready to start working with powerful, version-aware UUIDs in DomainFlow.