1. Go to this page and download the library: Download nishadil/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/ */
nishadil / uuid example snippets
Nishadil\Uuid\Uuid;
$uuidV1 = Uuid::v1()->get();
$uuidV2 = Uuid::v2()
->withLocalDomain('uid') // or 'gid'
->withLocalId(1000)
->get();