PHP code example of kodus / uuid-v5

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

    

kodus / uuid-v5 example snippets


use Kodus\Helpers\UUID;

$uuid = UUIDv5::create(UUIDv5::NS_URL, "http://example.com/"); // "0a300ee9-f9e4-5697-a51a-efc7fafaba67"

assert(UUIDv5::isValid($uuid));