PHP code example of devuri / uuid-generator

1. Go to this page and download the library: Download devuri/uuid-generator 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/ */

    

devuri / uuid-generator example snippets


use Devuri\UUIDGenerator\UUIDGenerator;

$uuidGenerator = new UUIDGenerator();

$uuidGenerator = new UUIDGenerator(1, 0x80);

$uuid = $uuidGenerator->generateUUID();

    use Devuri\UUIDGenerator\UUIDGenerator;
    
    $uuidGenerator = new UUIDGenerator();
    $uuid = $uuidGenerator->generateUUID();
    
    echo $uuid;