Keygen is a PHP class that can be used to generate random numbers, strings and serial numbers. The class has 3 methods that you can use: random, serial, customSerial.
Features
Generate random strings or numbers with a defined length Generate serial numbers with a with a custom length Generate custom serial numbers with a format that you choose. For example XX9 -XX1-XXX-4BA where the X’es will be replaced with random characters out of a list you define.