Download the PHP package adeela/user-discounts without Composer
On this page you can find all versions of the php package adeela/user-discounts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download adeela/user-discounts
More information about adeela/user-discounts
Files in adeela/user-discounts
Download adeela/user-discounts
More information about adeela/user-discounts
Files in adeela/user-discounts
Vendor adeela
Package user-discounts
Short Description A Laravel package for user-level discounts
License
Package user-discounts
Short Description A Laravel package for user-level discounts
License
Please rate this library. Is it a good library?
Informations about the package user-discounts
Laravel User Discounts Package
A Laravel 8+ package to manage user-level discounts with deterministic stacking, usage caps, and audit logging.
✨ Features
- Assign and revoke discounts to specific users
- Validate user discount eligibility
- Apply discounts with stacking and rounding logic
- Enforce per-user usage limits
- Log and audit discount usage
- Fire events on discount assignment, revocation, and application
🧩 Installation
-
Install via Composer
-
Register Service Provider (if not auto-discovered)
In
config/app.php: -
Publish Config File
This creates
config/user-discounts.php. - Run Migrations (if provided)
⚙️ Configuration
Sample config/user-discounts.php:
🧠 Usage Examples
1. Create a Discount
2. Assign Discount to a User
4. Apply Discount
5. Revoke Discount
🔔 Events
| Event | Description |
|---|---|
DiscountAssigned |
Triggered when a discount is assigned |
DiscountRevoked |
Triggered when a discount is revoked |
DiscountApplied |
Triggered when a discount is applied |
🧪 Testing
All versions of user-discounts with dependencies
PHP Build Version
Package Version
The package adeela/user-discounts contains the following files
Loading the files please wait ...