PHPackages                             lpmatrix/cartie - 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. [Payment Processing](/categories/payments)
4. /
5. lpmatrix/cartie

ActiveLibrary[Payment Processing](/categories/payments)

lpmatrix/cartie
===============

A clean shopping cart implementation for Laravel

1.1.2(5y ago)11101MITPHPPHP ^7.1

Since Sep 15Pushed 5y ago3 watchersCompare

[ Source](https://github.com/LPMatrix/cartie)[ Packagist](https://packagist.org/packages/lpmatrix/cartie)[ Docs](https://github.com/lpmatrix/cartie)[ RSS](/packages/lpmatrix-cartie/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Cartie
======

[](#cartie)

[![Latest Version on Packagist](https://camo.githubusercontent.com/52d622c0368c9b25a37bb16a9ebd455fdb2097ad79f27dfafc623ccc7f02b2da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c706d61747269782f6361727469652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lpmatrix/cartie)[![Build Status](https://camo.githubusercontent.com/a500a44e914987d5cadf47de1ee4b3a701d74e71c6afddab73da5cd37acd1a05/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c706d61747269782f6361727469652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/lpmatrix/cartie)[![License](https://camo.githubusercontent.com/f45d904953153ca304a2328243d2733e095eee13a631a1f390709885d41dd692/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2f6672616d65776f726b2f6c6963656e73652e737667)](https://packagist.org/packages/lpmatrix/cartie)[![Total Downloads](https://camo.githubusercontent.com/bb780c5800ec4bfe7a19658972064406ff04364368fdf74889a2bf41a5ddddae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c706d61747269782f6361727469652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lpmatrix/cartie)[![Made in Nigeria](https://camo.githubusercontent.com/6f2b7d02df82f57e88110a2cc9439f3da778466aec9a2ee4987f2b6768482f06/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d616465253230696e2d6e6967657269612d3030383735312e7376673f7374796c653d666c61742d737175617265)](https://github.com/acekyd/made-in-nigeria)

A clean shopping cart implementation for Laravel. This package uses PSR-4 standard

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

[](#installation)

You can install the package via composer:

```
composer require lpmatrix/cartie
```

Usage
-----

[](#usage)

### Cartie::add()

[](#cartieadd)

```
Cartie::add(['id'=>1, 'name'=>'Airforce', 'price'=>150, 'quantity'=>1]);
```

### Cartie::update()

[](#cartieupdate)

```
Cartie::update(['rowid'=>'c9f0f895fb98ab9159f51fd0297e236d', 'quantity'=>2]);
```

### Cartie::remove()

[](#cartieremove)

```
Cartie::remove('c9f0f895fb98ab9159f51fd0297e236d');
```

### Cartie::clear()

[](#cartieclear)

```
Cartie::clear();
```

### Cartie::contents()

[](#cartiecontents)

```
Cartie::contents();
```

### Cartie::totalItems()

[](#cartietotalitems)

```
Cartie::totalItems();
```

### Cartie::totalPrice()

[](#cartietotalprice)

```
Cartie::totalPrice();
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Sanusi Mubaraq](https://github.com/lpmatrix)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.7% 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 ~113 days

Total

3

Last Release

1837d ago

Major Versions

0.1 → 1.1.12020-09-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/429c3bc5d756e9831474db8d96fd9d0446353f5da51542dde67b6895616b61fc?d=identicon)[LPMatrix](/maintainers/LPMatrix)

---

Top Contributors

[![LPMatrix](https://avatars.githubusercontent.com/u/12500715?v=4)](https://github.com/LPMatrix "LPMatrix (16 commits)")[![omotolaawokunle](https://avatars.githubusercontent.com/u/37003746?v=4)](https://github.com/omotolaawokunle "omotolaawokunle (6 commits)")

---

Tags

laravelcartshoppingcartlpmatrixcartie

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lpmatrix-cartie/health.svg)

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

###  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)[lunarphp/stripe

Stripe payment driver for Lunar.

2055.8k4](/packages/lunarphp-stripe)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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