freshbitsweb/cart-manager
Freshbitsweb Cart Manager is a lightweight Laravel package for e-commerce carts. It manages items, quantities, prices, totals, taxes, discounts, and multiple cart instances through a clean, fluent API, making it easy to add robust cart functionality to any Laravel application.
freshbitsweb/cart-manager lets you buy the mechanics (line items, custom attributes, multi-cart contexts, session/DB persistence) while you keep ownership of the policy (pricing rules, tax jurisdiction logic, promotion engines). That split is the decision this package actually informs.Adopt when:
composer.json constraints match your runtime. Verify Laravel/PHP compatibility before the spike — a 2023 release date means newer Laravel majors are a genuine open question, not a formality.CartService interface so pricing policy stays in your code and a future swap is one adapter, not a refactor.Look elsewhere when:
For executives — the one-paragraph version:
Cart functionality is commodity infrastructure — every commerce feature we're planning depends on it, and none of our differentiation lives inside it. This package gives us that layer off the shelf, idiomatically integrated with our existing Laravel stack, with support for multiple carts (guest vs. logged-in, per-vendor) and either session or database persistence. The return is measured in roadmap weeks: checkout and quote flows stop waiting on bespoke cart code. The cost is a short validation spike plus a low, ongoing upgrade cadence with a named owner. The risk is real but bounded — small maintainer, no release since early 2023 — so we contain it by pinning a version, wrapping the package behind our own interface, and keeping all pricing, tax, and discount policy in our own code. Decision requested: approve a 2–3 day spike covering install, the guest-to-user cart merge flow, and a Laravel-version compatibility check; commit only if it passes.
For engineering — the practical framing:
The one-line version for the roadmap doc: Buy the cart container, own the cart math.
How can I help you explore Laravel packages today?