safemood/discountify
Laravel package for dynamic, condition-based discounts. Define custom discount rules, apply percentage discounts, set global discount and tax rate, support dynamic field names, class-based and coupon discounts, optional event tracking, and the ability to skip conditions.
Architecture fit: The package integrates seamlessly into Laravel's ecosystem via service providers, Facades, and config publishing. It leverages Laravel's event system and dependency injection, aligning with standard practices. Condition-based logic is extensible through class-based interfaces and dynamic field mapping, allowing customization for existing data structures.
Integration feasibility: Installation via Composer is straightforward with minimal setup. The API is clean (e.g., setItems(), applyCoupon(), total()), and config publishing enables easy customization of field names and storage paths. Compatibility with Laravel 8+ is assumed based on usage patterns, though PHP version requirements aren't explicitly stated.
Technical risk: Critical risks include 0 dependents (indicating limited real-world testing), JSON-based coupon storage (coupons.json) which is unsuitable for multi-server environments and prone to race conditions/corruption, and breaking changes in
How can I help you explore Laravel packages today?