discountify

Laravel package for dynamic discounts with custom conditions.

MIT License

Downloads
2.1K
Stars
163

Bot releases are visible (Hide)

discountify - 1.5.0 Latest Release

Published by github-actions[bot] 7 months ago

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

discountify - 1.4.3

Published by github-actions[bot] 7 months ago

What's Changed

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

discountify - 1.4.2

Published by github-actions[bot] 7 months ago

What's Changed

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

discountify - 1.4.1

Published by github-actions[bot] 7 months ago

What's Changed

New Contributors

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

discountify - 1.4.0

Published by github-actions[bot] 9 months ago

What's Changed

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

discountify - 1.3.0

Published by github-actions[bot] 9 months ago

What's Changed

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

discountify - 1.2.0

Published by github-actions[bot] 9 months ago

What's Changed

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

discountify - 1.1.0

Published by github-actions[bot] 9 months ago

What's Changed

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

discountify - 1.0.0

Published by github-actions[bot] 9 months ago

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

discountify - 0.4.0

Published by Safemood 10 months ago

discountify - 0.3.1

Published by Safemood 10 months ago

discountify - 0.1.0

Published by Safemood 10 months ago

Package Rankings
Top 47.67% on Packagist.org
Badges
Extracted from project README
Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads
Related Projects