PHP code example of fordbedia / php-uuid

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

    

fordbedia / php-uuid example snippets


use Security\UUID;
// Create UUID on the fly
$uuid = UUID::generate();

echo $uuid;
// Result E.g.: 43034342-4620-417e-aec2-d7e3eb90daa3

use Security\UUID;

// Create a license key
$guid = new UUID;

echo $guid->createGUID();
// Result E.g.: 912AFB38-5069-ABFB-5A48-1EF5051BB7D0


// Create a UUID key
echo (new UUID)->uuid();
// Result E.g.: 61255da2-f8b0-4709-9b45-810758a32009