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 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.

View on GitHub
Deep Wiki
Context7
1.5.2

What's Changed

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

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.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui