endyjasmi/cuid library
- Add
endyjasmi/cuid
library tocomposer.json
file:
"require": {
"endyjasmi/cuid": "^2.1"
}
- Install library from the command line:
composer install
- Generate CUID:
<?php
require_once __DIR__.'/vendor/autoload.php';
use EndyJasmi\Cuid;
$cuidStr = Cuid::cuid();
echo $cuidStr;
Leave a Comment
Cancel reply