Skip to content

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

License

Notifications You must be signed in to change notification settings

ramazancetinkaya/uuid-v4-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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;
}

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages