Stars: 109
Forks: 69
Pull Requests: 6
Issues: 5
Watchers: 8
Last Updated: 2020-10-21 07:53:30
Simple PHP coupon code generator to genrate N number of coupons.
License:
Languages: PHP
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.
coupon::generate(8); // J5BST6NQ
coupon::generate(6, ”XYZ-”); // XYZ-NT163E
coupon::generate(6, ”XYZ-”, “-ABC”); // XYZ-TC2MSD-ABC
coupon::generate(6, ””, ””, false); // LNTDRS
coupon::generate(6, ””, ””, true, false); // 835710
coupon::generate(6, ””, ””, true, true, true); // #H5&S!7
coupon::generate(6, ””, ””, true, true, false, true); // aT4hB2
coupon::generate(1, ””, ””, true, true, false, false, “XXXXXX”); // STG6N8