PHPackages                             nimdevelopment/coupons - 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. nimdevelopment/coupons

ActiveLibrary

nimdevelopment/coupons
======================

A package for making, validating and applying coupons discounts.

04PHP

Since Mar 29Pushed 7y agoCompare

[ Source](https://github.com/Nim-Development/Coupon)[ Packagist](https://packagist.org/packages/nimdevelopment/coupons)[ RSS](/packages/nimdevelopment-coupons/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Coupon
======

[](#coupon)

Simple package for creating and applying coupons.

**Instal:**`composer require nimdevelopment/coupons`

**ServiceProvider:**`NimDevelopment\Coupons\CouponsServiceProvider::class,`

**Facade:**`'Coupon' => NimDevelopment\Coupons\Facades\Coupon::class,`

**Migrate the coupons table**`$ php artisan migrate`

**Note**

- Coupon model: `NimDevelopment\Coupons\Models\Coupon;`
- Make relation to coupon with: `coupon_id`

**Create a new coupon:**`Coupon::create('30%Off', 30)`

**Update a coupon:**`Coupon::update(1 ,'30%Off', 30)`(where 1 = the coupon id)

**Delete a coupon:**`Coupon::delete(1)`

**Fetch a coupon**`Coupon::get(1)`

**Fetch all coupons**`Coupon::all()`

**Apply coupon discount**`Coupon::apply(1, 150)`(where 1 = coupon id, 150 is price)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

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/d7e2e7e79c18a3d9c2130c84ddc339bd59663befb67b349267c4d442ffd3efdc?d=identicon)[NimDevelopment](/maintainers/NimDevelopment)

---

Top Contributors

[![Nim-Development](https://avatars.githubusercontent.com/u/38979018?v=4)](https://github.com/Nim-Development "Nim-Development (1 commits)")

### Embed Badge

![Health badge](/badges/nimdevelopment-coupons/health.svg)

```
[![Health](https://phpackages.com/badges/nimdevelopment-coupons/health.svg)](https://phpackages.com/packages/nimdevelopment-coupons)
```

PHPackages © 2026

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