Skip to content

heheheheheehyqo/uid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uid, uuid

Packagist Version Packagist PHP Version Support GitHub Workflow Status

Install

composer require hyqo/uid

uid(int $length = 8): string

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

uuid4(): string

Generate UUID v4

use Hyqo\Uid\uuid4;

echo uuid4(); //17ef386f-043a-4327-b959-f853c3337c34

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Languages