A high-performance shopping cart package for Laravel 11/12 with tax calculation, discounts, coupons, and flexible storage options.
composer require saeedvir/shopping-cart
See Document
β¨ 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)