Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Discountify Laravel Package

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.

View on GitHub
Deep Wiki
Context7
1.5.1

What's Changed

New Contributors

Full Changelog: https://github.com/Safemood/discountify/compare/1.5.0...1.5.1

1.5.0

What's Changed

  • Logic and Calculation Bug Fixes: All logic and calculation bugs have been addressed and resolved to enhance the reliability and accuracy of the package.
  • Added totalDetailed(): This method calculates the total with a detailed breakdown.
  • Added savings(): This method calculates the amount saved.
  • Updated calculateTaxAmount(): This method now calculates the tax amount, with an optional parameter to toggle between before and after discount (default is before discount).
  • CouponAppliedEvent: Added an event for when a coupon is applied.
  • DuplicateCouponException: Implemented an exception for handling duplicate coupons.
  • Test Coverage: Increased test coverage (99.6%) provides strong validation for the functionality of the introduced methods.
  • Type Coverage: Achieving a robust type coverage of (98.8%) ensures the solidity and accuracy of the codebase, reinforcing its reliability and correctness.
  • Spread Cheat: I used a spread cheat (yes excel 😅 ) to validate all results link (The results are validated by an accounting expert).
  • Manual Validation: Manual calculations were performed on a variety of test data scenarios to ensure the accuracy of the package results.
  • Cross-checked the results with several websites to ensure accuracy:
  1. Shopify Discount Calculator
  2. Financial Calculator
  3. Discount Calculator

Full Changelog: https://github.com/Safemood/discountify/compare/1.4.3...1.5.0

1.4.3

What's Changed

Full Changelog: https://github.com/Safemood/discountify/compare/1.4.2...1.4.3

1.4.2

What's Changed

Full Changelog: https://github.com/Safemood/discountify/compare/1.4.1...1.4.2

1.4.1

What's Changed

New Contributors

Full Changelog: https://github.com/Safemood/discountify/compare/1.4.0...1.4.1

1.2.0

What's Changed

Full Changelog: https://github.com/Safemood/discountify/compare/1.1.0...1.2.0

1.0.0

What's Changed

Breaking Changes

  • The define and defineIf methods now require a slug parameter.

Full Changelog: https://github.com/Safemood/discountify/compare/0.4.0...1.0.0

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests