PHPackages                             cumanzorx07/coupon\_code\_generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cumanzorx07/coupon\_code\_generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cumanzorx07/coupon\_code\_generator
===================================

PHP library to generate and validate coupon code strings.

v1.0.1(4y ago)06.1k↓46.4%[2 issues](https://github.com/cumanzorx07/coupon-code-generator/issues)GPL-3.0-or-laterPHPPHP ~7.3|~8.0

Since Nov 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/cumanzorx07/coupon-code-generator)[ Packagist](https://packagist.org/packages/cumanzorx07/coupon_code_generator)[ Docs](https://github.com/cumanzorx07/coupon-code-generator)[ RSS](/packages/cumanzorx07-coupon-code-generator/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

coupon-code-generator
=====================

[](#coupon-code-generator)

Basically, it's a PHP solution that generates unique easy-to-read coupon codes. I took inspiration from [https://github.com/mariuswilms/coupon\_code](https://github.com/mariuswilms/coupon_code), some sections are clearly based on that project.

Features
--------

[](#features)

- PHP 7.4 and 8.0 support
-

Common use cases
----------------

[](#common-use-cases)

- You need to generate a random code to use on promotions.

License
-------

[](#license)

This software is distributed under the [GPL 3.0](http://www.gnu.org/licenses/gpl-3.0.html) license.

How to install it
-----------------

[](#how-to-install-it)

```
composer require cumanzorx07/coupon_code_generator
```

A super simple example
----------------------

[](#a-super-simple-example)

```
