PHPackages                             eldegweydev/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. [Framework](/categories/framework)
4. /
5. eldegweydev/coupon

ActivePackage[Framework](/categories/framework)

eldegweydev/coupon
==================

Coupon CRUD Package For Laravel

012PHP

Since Apr 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mahmoudeldegwey/coupons-crud-laravel)[ Packagist](https://packagist.org/packages/eldegweydev/coupon)[ RSS](/packages/eldegweydev-coupon/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Coupon Package
==============

[](#coupon-package)

This package help you to generate the CRUD for coupon codes and easily apply the coupons and verify it. It offer different types of discounts, Fixed and Percentage discounts.

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

[](#installation)

First, install Package into your project using the Composer package manager:

```
composer require eldegweydev/coupon
```

Run migrations
--------------

[](#run-migrations)

Finally, run database migration

```
php artisan migrate
```

Routes List
-----------

[](#routes-list)

Can access the coupons routes from this table

MethodActionURIGETindex/couponsGETshow/coupons/{coupon}GETcreatecoupons/createPOSTstore/couponsGETedit/coupons/{coupon}/editPUTupdate/coupons/{coupon}DELETEdestroy/coupons/{coupon}Usage
-----

[](#usage)

To verify coupon code and apply the discount , you can use the provided Trait Coupon, it has two functions one for check the coupon is active and second to apply the coupon discount

```
use Eldegweydev\Coupon\Http\Traits\CouponTrait

use CouponTrait;

$this->checkCouponIsActive($code,$select = ['*']);

$this->calculateCouponDiscount($code,$total_price);
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

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/4a6418c2ce128c6f0a09bfae31b79154af3a9481c7cbc3e4870167baaef3e3cb?d=identicon)[mahmoudeldegwey](/maintainers/mahmoudeldegwey)

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M255](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M120](/packages/cakephp-chronos)

PHPackages © 2026

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