Simple PHP Coupon Code Generator

Joash Pereira
Joash’s Blog
Published in
2 min readNov 27, 2015
simple-php-coupon-code-generator-free

Coupon Code Generator is a PHP script that allows you to create any number of random coupon codes. The generated coupon codes can contain a different set of characters and have different character lengths, option to add your own prefix and suffix. All generated coupon codes generated will be different, which makes it useful to provide discount coupon codes.

Recently, I was working on one of the the projects which needed coupon codes to be generated. So, I made a customizable interface to generate coupon codes.

[caption id=”attachment_598" align=”aligncenter” width=”620"]

joash-pereira-simple-php-coupon-code-generator

Simple and Clean Interface[/caption]

Features

  1. Support to add prefix- and -suffix
  2. Support to add custom coupon mask
  3. Support to customize only numbers, only alphabets, only symbols or all
  4. Support to generate coupons N lengths (N- any number)
  5. Generate N number of coupons
  6. Option to export codes to excel sheet
  7. Simple and clean interface
  8. Ability to add the PHP class file to your own project
  9. Well documented with comments

Source Code and Project file on Github

--

--