PHPackages                             spectrum8/coupon\_code - 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. spectrum8/coupon\_code

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

spectrum8/coupon\_code
======================

PHP library to generate and validate coupon code strings.

v1.0.0(11y ago)0382BSD-3-clausePHPPHP &gt;=5.4.0

Since Aug 28Pushed 8y agoCompare

[ Source](https://github.com/spectrum8/coupon_code)[ Packagist](https://packagist.org/packages/spectrum8/coupon_code)[ Docs](https://github.com/atelierdisko/coupon_code)[ RSS](/packages/spectrum8-coupon-code/feed)WikiDiscussions 1.0 Synced 3d ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

```

Coupon Code
-- PHP library to generate and validate coupon code strings.

Synopsis
--------
This library is a loose port of the CPAN module Algorithm::CouponCode[0] by Grant McLean.

[0] https://github.com/grantm/Algorithm-CouponCode

Copyright & License
-------------------
This library is Copyright (c) 2014 Atelier Disko if not otherwise stated.
The code is distributed under the terms of the BSD 3-clause License. For
the full license text see the LICENSE file.

Installation
------------
The preferred installation method is via composer. You can add
the library as a dependency via:

$ composer require atelierdisko/coupon_code

Quickstart
----------

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~330 days

Total

5

Last Release

2955d ago

PHP version history (2 changes)v1.0.0-alphaPHP &gt;=5.5.0

v1.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/654f449c4a68a2ed7145b529b129705f1a40051ed1de1fe1740579f04533a7f5?d=identicon)[spectrum8](/maintainers/spectrum8)

---

Top Contributors

[![mariuswilms](https://avatars.githubusercontent.com/u/29702?v=4)](https://github.com/mariuswilms "mariuswilms (5 commits)")[![savah](https://avatars.githubusercontent.com/u/3496912?v=4)](https://github.com/savah "savah (1 commits)")[![spectrum8](https://avatars.githubusercontent.com/u/36987030?v=4)](https://github.com/spectrum8 "spectrum8 (1 commits)")

---

Tags

codetokenkeyvouchercoupon

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/spectrum8-coupon-code/health.svg)

```
[![Health](https://phpackages.com/badges/spectrum8-coupon-code/health.svg)](https://phpackages.com/packages/spectrum8-coupon-code)
```

###  Alternatives

[endroid/qr-code

Endroid QR Code

4.8k67.6M348](/packages/endroid-qr-code)[laminas/laminas-code

Extensions to the PHP Reflection API, static code scanning, and code generation

1.9k185.4M172](/packages/laminas-laminas-code)[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.2k64.2M576](/packages/nette-php-generator)[jetbrains/phpstorm-stubs

PHP runtime &amp; extensions header files for PhpStorm

1.4k27.7M68](/packages/jetbrains-phpstorm-stubs)[scrivo/highlight.php

Server side syntax highlighter that supports 185 languages. It's a PHP port of highlight.js

71040.3M82](/packages/scrivo-highlightphp)[atelierdisko/coupon_code

PHP library to generate and validate coupon code strings.

60190.4k2](/packages/atelierdisko-coupon-code)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
