PHP code example of qlimix / uuid-ramsey

1. Go to this page and download the library: Download qlimix/uuid-ramsey library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

qlimix / uuid-ramsey example snippets




use \Qlimix\Id\Uuid\Generator\RamseyUuidGenerator;
use Throwable;

$generator = new RamseyUuidGenerator();
try {
    $uuid = $generator->generate();
} catch (Throwable $exception) {
    // UuidGeneratorException
}