PHPackages                             ronash-dhakal/yii2-coupon - 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. ronash-dhakal/yii2-coupon

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

ronash-dhakal/yii2-coupon
=========================

Discount Coupon Yii2

124PHP

Since Jul 11Pushed 6y agoCompare

[ Source](https://github.com/ronash-dhakal/yii2-coupon)[ Packagist](https://packagist.org/packages/ronash-dhakal/yii2-coupon)[ RSS](/packages/ronash-dhakal-yii2-coupon/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Coupon Exention
===============

[](#coupon-exention)

Discount Coupon Yii2

---

In Active Development.

+++ TODO +++

1. DB Migration
2. Products Model Mapping

---

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist ronash-dhakal/yii2-coupon "*"

```

or add

```
"ronash-dhakal/yii2-coupon": "*"

```

to the require section of your `composer.json` file.

Database
--------

[](#database)

```
CREATE TABLE `coupon` (
  `id` int(11) NOT NULL,
  `name` varchar(200) NOT NULL,
  `expire_on` date NOT NULL,
  `current_use` int(11) NOT NULL DEFAULT '0',
  `total_use` int(11) NOT NULL DEFAULT '0',
  `description` varchar(255) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `public` tinyint(4) NOT NULL DEFAULT '1',
  `has_condition` tinyint(4) NOT NULL DEFAULT '0',
  `filter_by` varchar(50) DEFAULT NULL,
  `min_price` double DEFAULT NULL,
  `max_price` double DEFAULT NULL,
  `discount` float NOT NULL,
  `products` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

```

Usage
-----

[](#usage)

Once the extension is installed, add following code to config module :

```
```
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c3a32dd461e4899995b6d037164a213db98bf26136c60d95ff1d9f9f9a879d7?d=identicon)[ronash-dhakal](/maintainers/ronash-dhakal)

---

Top Contributors

[![ronash-dhakal](https://avatars.githubusercontent.com/u/45626377?v=4)](https://github.com/ronash-dhakal "ronash-dhakal (16 commits)")

### Embed Badge

![Health badge](/badges/ronash-dhakal-yii2-coupon/health.svg)

```
[![Health](https://phpackages.com/badges/ronash-dhakal-yii2-coupon/health.svg)](https://phpackages.com/packages/ronash-dhakal-yii2-coupon)
```

PHPackages © 2026

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