PHPackages                             autepos/discount-nke-laravel - 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. autepos/discount-nke-laravel

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

autepos/discount-nke-laravel
============================

Laravel wrapper for autepos/discount

02PHP

Since Jun 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/autepos/discount-nke-laravel)[ Packagist](https://packagist.org/packages/autepos/discount-nke-laravel)[ RSS](/packages/autepos-discount-nke-laravel/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Introduction
============

[](#introduction)

DiscountNkeLaravel is an implementation of autepos/discount for Laravel. It is designed to be similar to Stripe's Discount which is made up of a coupon and a promotion code. It not quite a wrapper around autepos/discount since it mainly implement the DiscountInstrument and interface and provides the necessary Eloquent models.

Requirements
============

[](#requirements)

- PHP 8.0+
- Laravel 9.x+

Installation
============

[](#installation)

Install the package via composer:

```
composer require autepos/discount-nke-laravel

php artisan migrate
```

Usage
=====

[](#usage)

```
use Autepos\DiscountNkeLaravel\Contracts\DiscountProcessorFactory;
use Autepos\Discount\Contracts\DiscountableDevice;
use Autepos\DiscountNkeLaravel\Models\PromotionCode;

class Order implements DiscountableDevice
{
    //...
}

$discountableDevice = new Order();
$discountInstrument = new PromotionCode::find(1);

$processor = app(DiscountProcessorFactory::class);
$processor->addDiscountableDevice($discountableDevice)
          ->addDiscountInstrument($discountInstrument);
$discountLineList = $processor->calculate();

// Get the discount amount
$discountAmount = $discountLineList->amount();

// Persist the discount
$discountLineList->redeem();

```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

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

---

Top Contributors

[![osuagwu](https://avatars.githubusercontent.com/u/20265860?v=4)](https://github.com/osuagwu "osuagwu (5 commits)")

### Embed Badge

![Health badge](/badges/autepos-discount-nke-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/autepos-discount-nke-laravel/health.svg)](https://phpackages.com/packages/autepos-discount-nke-laravel)
```

PHPackages © 2026

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