PHPackages                             tipoff/discounts - 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. tipoff/discounts

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

tipoff/discounts
================

Laravel Package for Discount and Promo Codes

2.2.1(5y ago)11.6k1[4 issues](https://github.com/tipoff/discounts/issues)[1 PRs](https://github.com/tipoff/discounts/pulls)1MITPHPPHP ^7.4|^8.0

Since Feb 3Pushed 4y ago4 watchersCompare

[ Source](https://github.com/tipoff/discounts)[ Packagist](https://packagist.org/packages/tipoff/discounts)[ Docs](https://github.com/tipoff/discounts)[ GitHub Sponsors](https://github.com/tipoff)[ RSS](/packages/tipoff-discounts/feed)WikiDiscussions main Synced 5d ago

READMEChangelog (7)Dependencies (4)Versions (10)Used By (1)

Laravel Package for handling Discounts used in Ecommerce packages
=================================================================

[](#laravel-package-for-handling-discounts-used-in-ecommerce-packages)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4da8673757c77516d3a3aa69f01dbe87e00f1be6330fb8e195ffd94b5e51a9fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7469706f66662f646973636f756e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tipoff/discounts)[![Tests](https://github.com/tipoff/discounts/workflows/Tests/badge.svg)](https://github.com/tipoff/discounts/workflows/Tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/b136c6c5cdcd334fb2e43f725bc3f4ea1783ccadee647873348c66f27c96cfbd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7469706f66662f646973636f756e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tipoff/discounts)

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

[](#installation)

You can install the package via composer:

```
composer require tipoff/discounts
```

The migrations will run from the package. You can extend the Models from the package if you need additional classes or functions added to them.

You can publish the config file with:

```
php artisan vendor:publish --provider="Tipoff\Discounts\DiscountsServiceProvider" --tag="discounts-config"
```

Models
------

[](#models)

We include the following model:

**List of Models**

- Discount

For each of these models, this package implements an [authorization policy](https://laravel.com/docs/8.x/authorization) that extends the roles and permissions approach of the [tipoff/authorization](https://github.com/tipoff/authorization) package. The policies for each model in this package are registered through the package and do not need to be registered manually.

The models also have [Laravel Nova resources](https://nova.laravel.com/docs/3.0/resources/) in this package and they are also registered through the package and do not need to be registered manually.

#### Registering the Nova resources

[](#registering-the-nova-resources)

If you would like to use the Nova resources included with this package, you need to register it manually in your `NovaServiceProvider` in the `boot` method.

```
Nova::resources([
    \Tipoff\Discounts\Nova\Discount::class,
]);
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Tipoff](https://github.com/tipoff)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 59% 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 ~14 days

Recently: every ~19 days

Total

7

Last Release

1841d ago

Major Versions

1.1.0 → 2.0.02021-02-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ccc9e3647546c97a5a77b995736302afd85bebdcb43d8fde7d11486579c30c0?d=identicon)[drewroberts](/maintainers/drewroberts)

---

Top Contributors

[![drewroberts](https://avatars.githubusercontent.com/u/24581081?v=4)](https://github.com/drewroberts "drewroberts (72 commits)")[![pdbreen](https://avatars.githubusercontent.com/u/1670907?v=4)](https://github.com/pdbreen "pdbreen (20 commits)")[![huntermontell](https://avatars.githubusercontent.com/u/64396917?v=4)](https://github.com/huntermontell "huntermontell (11 commits)")[![wolfrednicolas](https://avatars.githubusercontent.com/u/13080491?v=4)](https://github.com/wolfrednicolas "wolfrednicolas (6 commits)")[![arwaawan](https://avatars.githubusercontent.com/u/16465411?v=4)](https://github.com/arwaawan "arwaawan (5 commits)")[![prestontoor](https://avatars.githubusercontent.com/u/22110334?v=4)](https://github.com/prestontoor "prestontoor (3 commits)")[![joshtorres](https://avatars.githubusercontent.com/u/5092957?v=4)](https://github.com/joshtorres "joshtorres (2 commits)")[![jhmontell](https://avatars.githubusercontent.com/u/58615260?v=4)](https://github.com/jhmontell "jhmontell (1 commits)")[![devjk1](https://avatars.githubusercontent.com/u/62731054?v=4)](https://github.com/devjk1 "devjk1 (1 commits)")[![arwaawan3](https://avatars.githubusercontent.com/u/64331952?v=4)](https://github.com/arwaawan3 "arwaawan3 (1 commits)")

---

Tags

discountstipoff

### Embed Badge

![Health badge](/badges/tipoff-discounts/health.svg)

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

PHPackages © 2026

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