PHPackages                             moirei/laravel-vouchers - 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. moirei/laravel-vouchers

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

moirei/laravel-vouchers
=======================

Manage ecommerce vouchers

3.0.1(3y ago)82.3k8[4 issues](https://github.com/augustusnaz/laravel-vouchers/issues)[8 PRs](https://github.com/augustusnaz/laravel-vouchers/pulls)MITPHPPHP ^8.1

Since Dec 13Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/augustusnaz/laravel-vouchers)[ Packagist](https://packagist.org/packages/moirei/laravel-vouchers)[ Docs](https://github.com/augustusnaz/laravel-vouchers)[ RSS](/packages/moirei-laravel-vouchers/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (12)Versions (17)Used By (0)

Laravel Vouchers
================

[](#laravel-vouchers)

An ecommerce voucher generator. It associates vouchers with one or more eloquent model and allows multiple models to own/redeem vouchers.

✔️ Requirements

- Laravel ^8
- PHP ^8.1

Documentation
-------------

[](#documentation)

All documentation is available at [the documentation site](https://augustusnaz.github.io/laravel-vouchers).

💚 Unique Features
-----------------

[](#green_heart-unique-features)

- Associate one voucher with one or more items
- **Flexible redeemer models**: vouchers can be redeemed by any model. `User`, `Admin`, `Guest` models.
- **Flexible voucher models**: voucher can be associated with any model. `Product`, `Variant`, `Ticket`, whatever else.
- Use vouchers once or multiple times
- **Limit access**: can define model instances that are allowed or excluded from redeeming a Voucher
- **Multiple limit scheme**; exhaust redeems per instance, per user or per product

Example usage:

```
$product = Product::find(1);
$voucher = $product->createVoucher();

$user->redeem($voucher);
```

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

[](#installation)

You can install the package via composer:

```
composer require moirei/laravel-vouchers
```

Next publish the migration with

```
php artisan vendor:publish --tag="vouchers-migrations"
```

Then run the migrations:

```
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="vouchers-config"
```

Notes
-----

[](#notes)

- The `allow_models` and `deny_models` attributes mentioned above are actually saved as `can_redeem` and `cannot_redeem` internally. They are mutated on boot creating or updating.
- If you manage your resources with Nova, [Nova Multiselect](https://novapackages.com/packages/optimistdigital/nova-multiselect-field) can be used directly with the `can_redeem` and `cannot_redeem` attributes. Example code [here](%5Bdoc/nova-resource-example.md%5D(https://augustusnaz.github.io/installation/nova-example)).

Credits
-------

[](#credits)

- [Augustus Okoye](https://github.com/augustusnaz)
- [beyondcode/**laravel-vouchers**](https://github.com/beyondcode/laravel-vouchers)
- [zgabievi/**laravel-promocodes**](https://github.com/zgabievi/laravel-promocodes)

License
-------

[](#license)

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

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance49

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~119 days

Total

9

Last Release

1389d ago

Major Versions

1.1.3 → 2.0.02021-06-30

2.1.0 → 3.0.02022-07-24

PHP version history (4 changes)1.0.0PHP ^7.2

1.1.3PHP ^7.2|^8.0

2.1.0PHP ^7.2|^8.1

3.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ac6a15a7b2f9055a98e4419e0d2820f72db3567706837ec388baee535d3e3e7?d=identicon)[moirei](/maintainers/moirei)

---

Top Contributors

[![augustusnaz](https://avatars.githubusercontent.com/u/51074349?v=4)](https://github.com/augustusnaz "augustusnaz (18 commits)")[![XternalSoft](https://avatars.githubusercontent.com/u/1142472?v=4)](https://github.com/XternalSoft "XternalSoft (2 commits)")

---

Tags

laravelcouponslaravel-voucherspromocodesvouchersmoirei

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/moirei-laravel-vouchers/health.svg)

```
[![Health](https://phpackages.com/badges/moirei-laravel-vouchers/health.svg)](https://phpackages.com/packages/moirei-laravel-vouchers)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[glhd/special

1929.4k](/packages/glhd-special)

PHPackages © 2026

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