Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

ID

PHP class to generate identification numbers and strings. IDs are generated with a control character using Luhn mod N, to enable verification of IDs programmatically.

Pool types

Name Radix Characters
alphanum 62 a-z, A-Z, 0-9
alpha 52 a-z, A-Z
lower 26 a-z
upper 26 A-Z
numeric 10 0-9
nozero 9 1-9
safe* 29 1-9, BCDFGHJKLMNPQRSTVWXZ

* Safe means that vowels has been removed to prevent the risk of inappropriate words being generated within the ID. All letters are in uppercase to ease reading for humans. The digit "0" (zero) has also been removed to prevent confusion with the letter "O".

Usage

require_once 'ID.php';
$id = new ID();

print $id->Generate();

About

PHP class to generate identification numbers and strings

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages