Weave 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

Laravel Shopping Cart Laravel Package

ibrand/laravel-shopping-cart

A shopping cart package for Laravel with session and database storage, multiple cart instances, item conditions, quantity updates, and totals calculation. Designed to be simple to install, extend, and integrate into any Laravel storefront or e-commerce app.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for the cart domain. The cart is commodity logic — line items, quantities, price snapshots, subtotal/total calculation, session persistence, and merge-on-login behavior. This package is a candidate to defer building that logic in-house, freeing engineering time for differentiated work (pricing rules, merchandising, fulfillment).
  • MVP scoping and sequencing. It answers "how fast can we stand up a working cart?" and therefore whether cart belongs in week 1 or week 6 of a roadmap.
  • Commerce architecture: compose vs. platform. If cart is the only commerce primitive you need, a small package plus your own checkout may beat adopting a full platform (Lunar, Aimeos, Bagisto, Sylius). If you also need promotions, tax, shipping, and multi-currency, this package's scope forces the "platform vs. composition" conversation early.
  • Pricing and data-model decisions you will have to make anyway. Evaluating it surfaces decisions a cart implementation encodes: when prices are snapshotted vs. live, currency handling, rounding, and discount application order. Those are product decisions, not just engineering ones.
  • Fork-and-own vs. dependency. MIT license plus a small surface area plus zero dependents makes this a viable "vendor the code and maintain it ourselves" option — a third path between build and buy.
  • Risk posture for revenue-critical paths. Deciding whether the cart (a conversion-critical, money-touching component) can tolerate an unmaintained dependency is a risk-appetite call that belongs with the PM, not only engineering.

When to Consider This Package

Consider it when:

  • The app is on Laravel 5.x/6-era versions, or engineering has confirmed compatibility and is willing to pin versions.
  • You need only a session- or database-backed cart with items, quantities, and totals — no promotions engine, no tax calculation, no multi-currency.
  • It's a prototype, internal tool, or low-traffic product where a broken cart is an inconvenience rather than a revenue event.
  • You want a reference implementation to read before writing your own cart layer.
  • Your team can read and own ~small amounts of straightforward PHP; a fork with namespace and service-provider updates is realistic.

Look elsewhere when:

  • You're on Laravel 10/11 or PHP 8.2+. A last release of January 2018 predates several framework and PHP breaking changes; expect service provider, container, and type-compatibility work before it runs.
  • You need coupons, promotions, tiered pricing, tax, shipping rates, or multi-currency — this package does not cover that surface.
  • You require active maintenance, security response, or vendor support. Zero dependents and no release in 7+ years is the signal: treat it as unmaintained.
  • The cart is on a revenue-critical, high-traffic, or compliance-sensitive path. Prefer a maintained option (Lunar, Aimeos, Bagisto, Sylius) or a hosted commerce provider with an SLA.
  • The license or provenance needs organizational review beyond MIT attribution.

How to Pitch It (Stakeholders)

To executives: This is a small MIT-licensed cart component that could save roughly a few days of engineering on an early build. The caveat is material: it has not been released since 2018, has no downstream dependents, and has no maintainer committed to security fixes. My recommendation is to treat it as a code reference or a fork-and-own starting point, not as a dependency in any revenue-critical checkout path — unless engineering's compatibility spike comes back clean and we accept the maintenance burden internally.

To engineering: Narrow package, single responsibility: cart items, quantities, totals, persistence. First task is a half-day compatibility spike against our Laravel/PHP versions; assume a fork is required for modern frameworks. Decision rule to propose: if the fork-and-verify cost exceeds the two-to-three days needed to write a cart layer ourselves, we build it — but we copy the domain model (line item, quantity, price snapshot, total calculation) either way, because that modeling is the part worth reusing.

Bottom line: Low-cost experiment, high-maintenance artifact. Worth a timeboxed spike for a prototype; not worth adoption as-is for production commerce.

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.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib