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

AbandonedArchivedLibrary

witify/laravel-cart
===================

Highly flexible cart for Laravel

1.0.12(7y ago)023MITPHPPHP ^7.1

Since May 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Witify/laravel-cart)[ Packagist](https://packagist.org/packages/witify/laravel-cart)[ Docs](https://github.com/Witify/laravel-cart)[ RSS](/packages/witify-laravel-cart/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (14)Used By (0)

Lightweight and highly flexible cart in Laravel
===============================================

[](#lightweight-and-highly-flexible-cart-in-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/58cdb18343a6f4724277b136476b8b5e811b2c25f03add73cbc701cce1cbb8f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f5769746966792f6c61726176656c2d636172742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Witify/laravel-cart)[![Build Status](https://camo.githubusercontent.com/bf2a0373d623d83b21d53325d8cf731d374072a2020e835edfbb725b15127bdd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5769746966792f6c61726176656c2d636172742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Witify/laravel-cart)[![Maintainability](https://camo.githubusercontent.com/a137935c924d22240a3981bbdc8c55d30428014c156ee13d14afdaa64a670839/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38656437323465396635376261613830633936342f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/Witify/laravel-cart/maintainability)[![Test Coverage](https://camo.githubusercontent.com/85faee18ae63b282f97995aa1d4b2e6c94966ab57082eb497c4ab1003bfae270/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38656437323465396635376261613830633936342f746573745f636f766572616765)](https://codeclimate.com/github/Witify/laravel-cart/test_coverage)[![Total Downloads](https://camo.githubusercontent.com/cf41c824558e750696b7960586133025c44934dbc3d508ad40aff866bd3cac58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f5769746966792f6c61726176656c2d636172742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/witify/laravel-cart)

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

[](#installation)

You can install the package via composer:

```
composer require witify/laravel-cart
```

Usage
-----

[](#usage)

For Laravel 5.1 to 5.4, add the service provider:

```
LaravelCartServiceProvider::class
```

### Configuration

[](#configuration)

To save cart into the database so you can retrieve it later, the package needs to know which database connection to use and what the name of the table is. By default the package will use the default database connection and use a table named `carts`. If you want to change these options, you'll have to publish the `config` file.

```
php artisan vendor:publish --provider="Witify\LaravelCart\LaravelCartServiceProvider" --tag="config"

```

This will give you a `cart.php` config file in which you can make the changes.

To make your life easy, the package also includes a ready to use `migration` which you can publish by running:

```
php artisan vendor:publish --provider="Witify\LaravelCart\LaravelCartServiceProvider" --tag="migrations"

```

This will place a `carts` table's migration file into `database/migrations` directory. Now all you have to do is run `php artisan migrate` to migrate your database

### 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)

- [François Lévesque](https://github.com/francoislevesque)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~8 days

Recently: every ~0 days

Total

13

Last Release

2818d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0da4aab93bdcb97dcfbb14e8f8fd038dedfe50eb4ba03c52e2f5432838929ce4?d=identicon)[francoislevesque](/maintainers/francoislevesque)

---

Top Contributors

[![francoislevesque](https://avatars.githubusercontent.com/u/14022409?v=4)](https://github.com/francoislevesque "francoislevesque (5 commits)")

---

Tags

laravelcart

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[binafy/laravel-cart

Laravel Cart is a customizable package for adding shopping cart functionality to Laravel applications

40445.9k](/packages/binafy-laravel-cart)[vanilo/cart

Vanilo Cart Module

51100.9k1](/packages/vanilo-cart)[realrashid/cart

Meet Cart — your ultimate solution for seamless shopping cart functionality in Laravel applications. Cart simplifies the complexities of shopping cart operations, from product additions to total calculations, ensuring a frictionless user experience.

1093.6k](/packages/realrashid-cart)[getcandy/core

GetCandy Laravel e-commerce core functionality.

156.6k3](/packages/getcandy-core)

PHPackages © 2026

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