Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 442 Bytes

README.md

File metadata and controls

16 lines (14 loc) · 442 Bytes

UUID v4 Generator

This library provides a simple and secure way to generate UUID v4 (Universally Unique Identifier, Version 4).

How to use

// Example usage:
try {
    $uuid = UUID::generate();
    echo "Generated UUID: " . $uuid . PHP_EOL;
    
    $isValid = UUID::validate($uuid);
    echo "Is Valid UUID: " . ($isValid ? 'Yes' : 'No') . PHP_EOL;
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . PHP_EOL;
}