PHPackages                             lee-to/laravel-cart - 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. lee-to/laravel-cart

ActiveLibrary

lee-to/laravel-cart
===================

Laravel cart module

0.5(5y ago)4181MITPHPPHP ^7.3

Since Jan 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lee-to/laravel-cart)[ Packagist](https://packagist.org/packages/lee-to/laravel-cart)[ Docs](https://github.com/lee-to/laravel-cart)[ RSS](/packages/lee-to-laravel-cart/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

laravel-cart
============

[](#laravel-cart)

Install
-------

[](#install)

- composer require lee-to/laravel-cart
- php artisan vendor:publish --provider="Leeto\\Cart\\Providers\\CartServiceProvider"
- set models and tables in config cart.php

### Usage

[](#usage)

##### Get cart items

[](#get-cart-items)

```
Cart::get();
```

##### Get all user carts

[](#get-all-user-carts)

```
Cart::userCarts(optional USER_ID);
```

##### Add to cart

[](#add-to-cart)

```
Cart::add(PRODUCT_ID, optional [VARIANT_ID_1, VARIANT_ID_2]);
```

##### Change quantity

[](#change-quantity)

```
Cart::quantity(CART_ITEM_ID, NEW_COUNT);
```

##### Total cart price

[](#total-cart-price)

```
Cart::total();
```

##### Total cart count

[](#total-cart-count)

```
Cart::count();
```

##### Remove

[](#remove)

```
Cart::remove(CART_ITEM_ID);
```

##### Clear all

[](#clear-all)

```
Cart::flush();
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1941d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1861327?v=4)[Danil Shutsky](/maintainers/lee-to)[@lee-to](https://github.com/lee-to)

---

Top Contributors

[![lee-to](https://avatars.githubusercontent.com/u/1861327?v=4)](https://github.com/lee-to "lee-to (3 commits)")

---

Tags

laravelcart

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lee-to-laravel-cart/health.svg)

```
[![Health](https://phpackages.com/badges/lee-to-laravel-cart/health.svg)](https://phpackages.com/packages/lee-to-laravel-cart)
```

###  Alternatives

[amsgames/laravel-shop

Package set to provide shop or e-commerce functionality (such as CART, ORDERS, TRANSACTIONS and ITEMS) to Laravel for customizable builds.

4845.9k](/packages/amsgames-laravel-shop)[vanilo/cart

Vanilo Cart Module

51100.9k1](/packages/vanilo-cart)[lunarphp/stripe

Stripe payment driver for Lunar.

2055.8k4](/packages/lunarphp-stripe)[getcandy/core

GetCandy Laravel e-commerce core functionality.

156.6k3](/packages/getcandy-core)[yabhq/laravel-cart

Simple yet customizable Laravel shopping cart

213.0k](/packages/yabhq-laravel-cart)

PHPackages © 2026

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