PHPackages                             michaelbelgium/shoppingcart - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. michaelbelgium/shoppingcart

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

michaelbelgium/shoppingcart
===========================

Laravel Shoppingcart

5.0.5(3y ago)91.1k2MITPHP

Since Mar 14Pushed 3y ago2 watchersCompare

[ Source](https://github.com/MichaelBelgium/LaravelShoppingcart)[ Packagist](https://packagist.org/packages/michaelbelgium/shoppingcart)[ RSS](/packages/michaelbelgium-shoppingcart/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (32)Used By (0)

LaravelShoppingcart
-------------------

[](#laravelshoppingcart)

[![CI Status](https://github.com/michaelbelgium/LaravelShoppingcart/actions/workflows/php.yml/badge.svg)](https://github.com/michaelbelgium/LaravelShoppingcart/actions)[![Total Downloads](https://camo.githubusercontent.com/61c6412545726ef84b05b78df2a8b3cf08dc4491c524669bcbc793da23c00428/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c62656c6769756d2f73686f7070696e67636172742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/michaelbelgium/shoppingcart)[![Latest Stable Version](https://camo.githubusercontent.com/9645199a56006320224a1be63d070c9a7905d3d20a9dd71cc787b4b29ac94c70/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c62656c6769756d2f73686f7070696e67636172742f762f737461626c65)](https://packagist.org/packages/michaelbelgium/shoppingcart)[![Latest Unstable Version](https://camo.githubusercontent.com/6ede32bbee7b93928bb93d6b7591afb63e45ac3b14cc5082586080d5634b9030/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c62656c6769756d2f73686f7070696e67636172742f762f756e737461626c65)](https://packagist.org/packages/michaelbelgium/shoppingcart)[![License](https://camo.githubusercontent.com/4fb247bcbc760d2198122ede20103c34a67ca625e726fd989f607b75f3b7a52c/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c62656c6769756d2f73686f7070696e67636172742f6c6963656e7365)](https://packagist.org/packages/michaelbelgium/shoppingcart)

A simple shoppingcart implementation for Laravel.

Installation
------------

[](#installation)

Install the package through [Composer](http://getcomposer.org/).

Run the Composer require command from the Terminal:

```
composer require michaelbelgium/shoppingcart

```

### Difference between [Crinsane/LaravelShoppingcart](https://github.com/Crinsane/LaravelShoppingcart)

[](#difference-between-crinsanelaravelshoppingcart)

- Added functionality
    - `Cart::cost()`
    - `Cart::costFormat()`
    - Enum `CostType`
    - `Cart::totalFormat()`
    - `Cart::taxFormat()`
    - `Cart::subtotalFormat()`
- More recent Laravel support
- More typed parameters, returns, properties, ...
- Less usage of magic properties - really dislike this one
- Refactoring

Overview and usage
------------------

[](#overview-and-usage)

Look at the detailed [wiki](https://github.com/MichaelBelgium/LaravelShoppingcart/wiki) to learn more about LaravelShoppingcart

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 63.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~109 days

Recently: every ~2 days

Total

31

Last Release

1167d ago

Major Versions

1.3 → 2.0.02016-06-15

2.6.3 → 3.0.02019-09-06

3.0.0 → 4.0.02022-04-02

4.0.0 → 5.0.02023-02-21

PHP version history (2 changes)1.0PHP &gt;=5.3.0

1.3PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/888b7a13d8ef5d680c9bc4a9baa1db37953015e30643e6320b3533459dd23d7a?d=identicon)[MichaelBelgium](/maintainers/MichaelBelgium)

---

Top Contributors

[![Crinsane](https://avatars.githubusercontent.com/u/1297781?v=4)](https://github.com/Crinsane "Crinsane (129 commits)")[![MichaelBelgium](https://avatars.githubusercontent.com/u/8951045?v=4)](https://github.com/MichaelBelgium "MichaelBelgium (47 commits)")[![rakibabu](https://avatars.githubusercontent.com/u/14089150?v=4)](https://github.com/rakibabu "rakibabu (3 commits)")[![mattusik](https://avatars.githubusercontent.com/u/1252223?v=4)](https://github.com/mattusik "mattusik (3 commits)")[![jorgejavierleon](https://avatars.githubusercontent.com/u/7950376?v=4)](https://github.com/jorgejavierleon "jorgejavierleon (2 commits)")[![tkaw220](https://avatars.githubusercontent.com/u/694289?v=4)](https://github.com/tkaw220 "tkaw220 (2 commits)")[![jmarkese](https://avatars.githubusercontent.com/u/1827586?v=4)](https://github.com/jmarkese "jmarkese (1 commits)")[![kekenec](https://avatars.githubusercontent.com/u/11806874?v=4)](https://github.com/kekenec "kekenec (1 commits)")[![mrabbani](https://avatars.githubusercontent.com/u/4253979?v=4)](https://github.com/mrabbani "mrabbani (1 commits)")[![nielsiano](https://avatars.githubusercontent.com/u/947684?v=4)](https://github.com/nielsiano "nielsiano (1 commits)")[![olimortimer](https://avatars.githubusercontent.com/u/1190115?v=4)](https://github.com/olimortimer "olimortimer (1 commits)")[![pendalff](https://avatars.githubusercontent.com/u/236587?v=4)](https://github.com/pendalff "pendalff (1 commits)")[![publiux](https://avatars.githubusercontent.com/u/2847188?v=4)](https://github.com/publiux "publiux (1 commits)")[![sasin91](https://avatars.githubusercontent.com/u/808722?v=4)](https://github.com/sasin91 "sasin91 (1 commits)")[![sobhanatar](https://avatars.githubusercontent.com/u/1507325?v=4)](https://github.com/sobhanatar "sobhanatar (1 commits)")[![4ilo](https://avatars.githubusercontent.com/u/15938739?v=4)](https://github.com/4ilo "4ilo (1 commits)")[![xpundel](https://avatars.githubusercontent.com/u/1384653?v=4)](https://github.com/xpundel "xpundel (1 commits)")[![absemetov](https://avatars.githubusercontent.com/u/735924?v=4)](https://github.com/absemetov "absemetov (1 commits)")[![adamgoose](https://avatars.githubusercontent.com/u/611068?v=4)](https://github.com/adamgoose "adamgoose (1 commits)")[![cwprogger](https://avatars.githubusercontent.com/u/11742147?v=4)](https://github.com/cwprogger "cwprogger (1 commits)")

---

Tags

laravellaravel-packageshopping-cartshoppingcartlaravelshoppingcart

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/michaelbelgium-shoppingcart/health.svg)

```
[![Health](https://phpackages.com/badges/michaelbelgium-shoppingcart/health.svg)](https://phpackages.com/packages/michaelbelgium-shoppingcart)
```

###  Alternatives

[gloudemans/shoppingcart

Laravel Shoppingcart

3.7k756.7k12](/packages/gloudemans-shoppingcart)[bumbummen99/shoppingcart

Laravel Shoppingcart

518555.4k3](/packages/bumbummen99-shoppingcart)[olimortimer/laravelshoppingcart

Laravel Shoppingcart

4343.2k](/packages/olimortimer-laravelshoppingcart)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
