Skip to content

mlusas/hexcodegenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

hexcodegenerator

A simple Hex Code Generator for promo codes.

Description

I created this to help create simple promo codes for clients. The txt file method was created for a previous client, but I may update this too include JSON, and potential SQL as outputs. I prefer hex-based codes as they allow:
  • for simplicity on user entry (ie., no confusion between O and 0; or 1, I, and L), and
  • the hex codes can be turned into binary for faster storage.

Usage

``` php // will create a txt file at /html/domain.com/codes/ with 10 codes at 16 hex-characters each. $hexCodeGenerator = new HexCodeGenerator(); $hexCodeGenerator->createTextFileOfCodes("/html/domain.com/codes", 10, 16); ```

About

A simple Hex Code Generator for promo codes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages