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

ActiveLibrary

atelierdisko/coupon\_code
=========================

PHP library to generate and validate coupon code strings.

v1.0.0(11y ago)60190.4k↓26.2%18[1 issues](https://github.com/mariuswilms/coupon_code/issues)[1 PRs](https://github.com/mariuswilms/coupon_code/pulls)2BSD-3-clausePHPPHP &gt;=5.4.0

Since Aug 28Pushed 5y ago7 watchersCompare

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

READMEChangelogDependencies (1)Versions (6)Used By (2)

```

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 Marius Wilms 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

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~474 days

Total

5

Last Release

2385d 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/a358e1a5ab7f7c81ecaae07acd830aa4a36726ab4da46a11df754a6e5b3a4cda?d=identicon)[mariuswilms](/maintainers/mariuswilms)

---

Top Contributors

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

---

Tags

couponsvoucherscodetokenkeyvouchercoupon

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[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)[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[nette/php-generator

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

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

PHP runtime &amp; extensions header files for PhpStorm

1.4k27.7M68](/packages/jetbrains-phpstorm-stubs)

PHPackages © 2026

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