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. [Utility &amp; Helpers](/categories/utility)
4. /
5. witify/laravel-cart

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

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 2w ago

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 47% 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

2866d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14022409?v=4)[François Lévesque](/maintainers/francoislevesque)[@francoislevesque](https://github.com/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

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[firefly-iii/data-importer

Firefly III Data Import Tool.

8005.8k](/packages/firefly-iii-data-importer)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

98145.2k3](/packages/nickurt-laravel-akismet)[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.

1104.0k](/packages/realrashid-cart)[creasi/laravel-nusa

A Laravel package that aim to provide Indonesia' Administrative Data

997.7k2](/packages/creasi-laravel-nusa)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1319.7k3](/packages/team-nifty-gmbh-tall-datatables)

PHPackages © 2026

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