PHPackages                             zgabievi/nova-promocodes - 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. [Admin Panels](/categories/admin)
4. /
5. zgabievi/nova-promocodes

AbandonedArchivedLibrary[Admin Panels](/categories/admin)

zgabievi/nova-promocodes
========================

A Laravel Nova tool.

9.0.1(4y ago)12885[1 PRs](https://github.com/zgabievi/nova-promocodes/pulls)MITPHPPHP ^8.1

Since Mar 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/zgabievi/nova-promocodes)[ Packagist](https://packagist.org/packages/zgabievi/nova-promocodes)[ RSS](/packages/zgabievi-nova-promocodes/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

[![#StandWithUkraine](https://camo.githubusercontent.com/2bedf63f24cda7efab02da955dc11fb7ef8a060e2f26b73c33a7aac84529b8a3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31)](https://supportukrainenow.org)[![nova-promocodes](https://camo.githubusercontent.com/49a1dacb42fde060651fe30a689ca3182337915a1a8040dc96e8082238551b2f/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4e6f766125323050726f6d6f636f6465732e6a7065673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d7a676162696576692532466e6f76612d70726f6d6f636f646573267061747465726e3d746f706f677261706879267374796c653d7374796c655f32266465736372697074696f6e3d412b4c61726176656c2b4e6f76612b746f6f6c2b666f722b7a676162696576692532466c61726176656c2d70726f6d6f636f6465732b6c696272617279266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://github.com/zgabievi/nova-promocodes)

nova-promocodes
===============

[](#nova-promocodes)

[![Packagist](https://camo.githubusercontent.com/c3a2e1ee49cd1a4f55023207b29bcda2d565f0f2207dfb4effd938116d9d046c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a676162696576692f6e6f76612d70726f6d6f636f6465732e737667)](https://packagist.org/packages/zgabievi/nova-promocodes)[![Packagist](https://camo.githubusercontent.com/efd0f1779e3709d95ebd9626646b20a238bd178ea62e46248102508c36664500/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a676162696576692f6e6f76612d70726f6d6f636f6465732e737667)](https://packagist.org/packages/zgabievi/nova-promocodes)[![license](https://camo.githubusercontent.com/b6520a4df33b8b89f6731c13f00022cf3819e23a3914dd546385089cb855d1d5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a676162696576692f6e6f76612d70726f6d6f636f6465732e737667)](https://packagist.org/packages/zgabievi/nova-promocodes)

Coupons and promotional codes generator for [Laravel Nova](https://nova.laravel.com). This package is created for [zgabievi/laravel-promocodes](https://github.com/zgabievi/laravel-promocodes).

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

[](#installation)

You can install the package via composer:

```
composer require zgabievi/nova-promocodes
```

Configuration
-------------

[](#configuration)

```
php artisan vendor:publish --provider="Zorb\NovaPromocodes\ToolServiceProvider"
```

Now you can change configurations as you need:

```
return [
    'models' => [
        'promocodes' => [
            'resource' => \Zorb\NovaPromocodes\Resources\Promocode::class,
        ],

        'users' => [
            'resource' => \App\Nova\User::class,
        ],
    ],
];
```

After you configure this file, run migrations:

```
php artisan migrate
```

Usage
-----

[](#usage)

It's very easy to use. Methods are combined, so that you can configure promocodes easily.

- [Reference](#reference)
- [Include Tool](#include-tool)
- [Parent Package](#parent-package)

Reference
---------

[](#reference)

NameExplanationMaskAstrisks will be replaced with random symbolCharactersAllowed symbols to use in mask replacementMulti useDefine if single code can be used multiple times, by the same userUnlimitedGenerated code will have unlimited usagesBound to userDefine if promocode can be used only one user, if user is not assigned initially, first user will be bound to promocodeUserDefine user who will be initially bound to promocodeCountAmount of unique promocodes should be generatedUsagesDefine how many times can promocode be usedExpirationDateTime when promocode should be expired. Null means that promocode will never expireDetailsArray of details which will be retrieved upon applyInclude Tool
------------

[](#include-tool)

Include promocodes tool inside nova service provider.

```
use Zorb\NovaPromocodes\PromocodesTool;

class NovaServiceProvider extends NovaApplicationServiceProvider
{
    // ...

    /**
     * Get the tools that should be listed in the Nova sidebar.
     *
     * @return array
     */
    public function tools()
    {
        return [
            PromocodesTool::make(),
        ];
    }
}
```

Parent Package
--------------

[](#parent-package)

For more information about parent package, visit [zgabievi/laravel-promocodes](https://github.com/zgabievi/laravel-promocodes).

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/zgabievi/nova-promocodes/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Zura Gabievi](https://github.com/zgabievi)
- [All Contributors](https://github.com/zgabievi/nova-promocodes/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/zgabievi/nova-promocodes/blob/master/LICENSE.md)for more information.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1570d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97b2001280ff47bbc67e542074e290919291715cd6c9f694e6787b50d67c60ad?d=identicon)[zgabievi](/maintainers/zgabievi)

---

Top Contributors

[![zgabievi](https://avatars.githubusercontent.com/u/1515299?v=4)](https://github.com/zgabievi "zgabievi (3 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/zgabievi-nova-promocodes/health.svg)

```
[![Health](https://phpackages.com/badges/zgabievi-nova-promocodes/health.svg)](https://phpackages.com/packages/zgabievi-nova-promocodes)
```

###  Alternatives

[david-griffiths/nova-dark-theme

A dark theme for Laravel Nova

71600.0k](/packages/david-griffiths-nova-dark-theme)[pdmfc/nova-action-button

A Laravel Nova field to run actions.

37753.3k1](/packages/pdmfc-nova-action-button)[khalin/nova-link-field

A Laravel Nova Link field.

31587.5k2](/packages/khalin-nova-link-field)[cloudcake/nova-fixed-bars

A Laravel Nova package to add a responsive and/or fixed sidebar and navigation bar to the Nova admin UI.

33214.4k2](/packages/cloudcake-nova-fixed-bars)[stephenlake/nova-fixed-bars

A Laravel Nova package to add a responsive and/or fixed sidebar and navigation bar to the Nova admin UI.

3377.9k](/packages/stephenlake-nova-fixed-bars)

PHPackages © 2026

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