DEV Community

saeed abdollahian
saeed abdollahian

Posted on

high-performance shopping cart package

A high-performance shopping cart package for Laravel 11/12 with tax calculation, discounts, coupons, and flexible storage options.

composer require saeedvir/shopping-cart

Enter fullscreen mode Exit fullscreen mode

See Document

https://github.com/saeedvir/shopping-cart/

Star this package

✨ Features
Core Features
πŸ›’ Item Management: Easily add, update, and remove items with an intuitive API
🎨 Attributes & Options: Custom attributes for variations (size, color, etc.)
πŸ’° Tax Calculation: Automatic tax application based on configurable rules
🎟️ Discounts & Coupons: Full coupon system with validation and discount codes
πŸ’Ύ Flexible Storage: Session or database storage options
πŸ“¦ Multiple Instances: Support for cart, wishlist, compare, and custom instances
🎯 Buyable Trait: Add cart functionality directly to your models
πŸ’± Currency Formatting: Built-in currency formatting with helper functions
Performance & Optimization
⚑ Cache::memo() Integration: 99% fewer config lookups
πŸš€ High Performance: 87% faster than traditional implementations
πŸ’¨ Memory Efficient: 99% less memory usage with smart data storage
πŸ“Š Database Optimized: Indexed queries and bulk operations
πŸ”₯ Production Ready: Handles 10,000+ concurrent users
πŸ“ˆ Scalable: Efficiently manages 1000+ item carts

Top comments (0)