safemood/discountify
Laravel package for dynamic, condition-based discounts. Define custom conditions, apply percentage discounts, set global discount and tax rate, support coupon and class-based discounts, dynamic item field names, optional condition skipping, and event tracking for e-commerce totals.
DiscountAppliedEvent) to power dashboards, fraud detection, or customer insights (e.g., "Top 10% of users redeemed this coupon").Adopt if:
Look elsewhere if:
"Discountify lets us run targeted promotions—like seasonal sales, bulk discounts, or loyalty rewards—without custom development. It’s like having a plug-and-play coupon engine that integrates seamlessly with our Laravel stack. For example, we could offer a ‘10% off for users with 5+ items’ or a ‘Black Friday 20% off’ coupon with expiry dates, all managed via code. This reduces backend work, speeds up marketing campaigns, and gives us data on which discounts drive the most revenue. The MIT license means no hidden costs, and the package is actively maintained."
*"This package replaces ad-hoc discount logic scattered across our codebase with a centralized, configurable system. Key benefits:
Discountify::setItems($cart)
->applyCoupon('SUMMER20')
->total(); // Returns discounted total + breakdown
Tradeoff: We’d need to standardize on Laravel, but the payoff is cleaner code, faster iteration, and fewer bugs in discount logic. The package is battle-tested (234 stars, active maintenance) and MIT-licensed."*
*"This tool lets us test and deploy promotions faster. For example:
How can I help you explore Laravel packages today?