composer require hyqo/uid
Generate random string with provided length (from 4 to 128)
use Hyqo\Uid\uid;
echo uid(4); //D6rn
echo uid(); //sUnXsNxg
echo uid(32); //wFqrtHZrMTPJcfNDsoixGAvUgf2qZQxg
Generate UUID v4
use Hyqo\Uid\uuid4;
echo uuid4(); //17ef386f-043a-4327-b959-f853c3337c34