Simple PHP Coupon Code Generator
Coupon code generator this is php class, which provides the ability to generate coupon codes on various parameters. Its key feature is the generation of a coupon code on a mask like this βXXXXXXβ or βprefix-XXXX-XXXX-suffixβ where βXβ β random symbol, β-β β custom separator.
Technology used
HTML, CSS, JS, PHPKey Feature
- Support prefix- and βsuffix
- Support any coupon mask
- Support all numbers, alphabets, symbols
- Support different lenghts
- Generate N number of coupons
- Simple Portal
- Export codes to excel sheet
Usage
1) Dynamic length
coupon::generate(8); // J5BST6NQ
2) Using prefix
coupon::generate(6, βXYZ-β); // XYZ-NT163E
3) Using suffix
coupon::generate(6, βXYZ-β, β-ABCβ); // XYZ-TC2MSD-ABC
4) Without numbers
coupon::generate(6, ββ, ββ, false); // LNTDRS
5) Without letters
coupon::generate(6, ββ, ββ, true, false); // 835710
6) With symbols
coupon::generate(6, ββ, ββ, true, true, true); // #H5&S!7
7) Random register (includes lower and uppercase)
coupon::generate(6, ββ, ββ, true, true, false, true); // aT4hB2
8) With custom Mask Note: length does not matter
coupon::generate(1, ββ, ββ, true, true, false, false, βXXXXXXβ); // STG6N8