PHPackages                             windomz/coupon-module - 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. windomz/coupon-module

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

windomz/coupon-module
=====================

A coupon module component - modularity and easy to deploy.

v0.10.1(8y ago)5212MITPHPPHP &gt;=7.0

Since Jun 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/WindomZ/coupon-module)[ Packagist](https://packagist.org/packages/windomz/coupon-module)[ RSS](/packages/windomz-coupon-module/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (6)Versions (10)Used By (0)

coupon-module
=============

[](#coupon-module)

> A coupon module component - modularity and easy to deploy.

[![Latest Stable Version](https://camo.githubusercontent.com/acc8a5936f7b680fa296f7c1d36609b009011f37632e05694226f5bc81d75246/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77696e646f6d7a2f636f75706f6e2d6d6f64756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/windomz/coupon-module)[![Build Status](https://camo.githubusercontent.com/0e63aceb18e8013822dea52d29e35d7bbae01a41f37dbe759d7a363af235e31d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f57696e646f6d5a2f636f75706f6e2d6d6f64756c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/WindomZ/coupon-module)[![Minimum PHP Version](https://camo.githubusercontent.com/90eed33e7df559b70b174e97d37a4907946803c7ab691640166d2518d8cd2118/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e302d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![Minimum MYSQL Version](https://camo.githubusercontent.com/f63dc8e0ec4da67b3c5f5a1bf276804cb3935e1539f7b4e2f29a7eea4c5f093d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d7973716c2d253345253344253230352e362d3434373961312e7376673f7374796c653d666c61742d737175617265)](https://www.mysql.com/)[![Platform](https://camo.githubusercontent.com/a615cf86bbb80a19819fdd6f246719ff32a27d5bba92c51115b1d7ebe280269d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d4c696e75782532466d61634f5325324657696e646f77732d6666363962342e7376673f7374796c653d666c61742d737175617265)](#readme)

[中文文档](https://github.com/WindomZ/coupon-module/blob/master/README_Ch-zh.md#readme)

Feature
-------

[](#feature)

- CouponActivity
- CouponTemplate
- CouponPack = CouponActivity + CouponTemplate
- CouponBatch
- Coupon = CouponPack + CouponBatch

Install
-------

[](#install)

Open the terminal in the project directory:

```
$ composer require windomz/coupon-module
```

Create a configuration file, like `config.yml`:

```
database_host: 127.0.0.1
database_port: 3306
database_type: mysql
database_name: coupondb
database_username: root
database_password: root
database_logging: true # open debug log
```

If only for quick testing, you can run `./sql/coupondb.sql` in `MySQL` to quickly create a test database.

Of course, you can also customize the `database name` based on `./sql/coupondb.sql`, but note that the `table name` *CANNOT MODIFY*!

In the project initialization code, load the specified configuration file through the following implementation:

```
Coupon::setConfigPath('./config.yml');
```

Usage
-----

[](#usage)

Refer to the [Document](https://windomz.github.io/coupon-module)(*Currently only Chinese*) for details.

License
-------

[](#license)

[MIT](https://github.com/WindomZ/coupon-module/blob/master/LICENSE)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~2 days

Total

9

Last Release

3283d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a89e55638a85fe172818182bdad8edf91f4b14452af84537d49e795b9f2108fd?d=identicon)[WindomZ](/maintainers/WindomZ)

---

Top Contributors

[![WindomZ](https://avatars.githubusercontent.com/u/14875359?v=4)](https://github.com/WindomZ "WindomZ (72 commits)")

---

Tags

componentcouponsmodulephp7modulecoupon

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/windomz-coupon-module/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M719](/packages/sylius-sylius)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M61](/packages/knuckleswtf-scribe)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k45](/packages/friendsoftypo3-content-blocks)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M534](/packages/shopware-core)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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