PHPackages                             mirchaye/laravel-shopping-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. [Framework](/categories/framework)
4. /
5. mirchaye/laravel-shopping-cart

ActiveLibrary[Framework](/categories/framework)

mirchaye/laravel-shopping-cart
==============================

Simple laravel shopping cart package

v0.1.0(2y ago)08[2 PRs](https://github.com/mirchaye/laravel-shopping-cart/pulls)MITPHPPHP ^8.1

Since Aug 5Pushed 2y agoCompare

[ Source](https://github.com/mirchaye/laravel-shopping-cart)[ Packagist](https://packagist.org/packages/mirchaye/laravel-shopping-cart)[ Docs](https://github.com/mirchaye/laravel-shopping-cart)[ RSS](/packages/mirchaye-laravel-shopping-cart/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (4)Used By (0)

Simple laravel shopping cart package
====================================

[](#simple-laravel-shopping-cart-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/36cac2b6b1aede1368d37ff544ea7d642a5e6fcf71a436a8da92b018b88a79df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d697263686179652f6c61726176656c2d73686f7070696e672d636172742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mirchaye/laravel-shopping-cart)[![GitHub Tests Action Status](https://camo.githubusercontent.com/1810eaa44688912ec887d49981bfa1fc7ce486b9eb16673c4a3f2d2a250b7e86/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d697263686179652f6c61726176656c2d73686f7070696e672d636172742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/mirchaye/laravel-shopping-cart/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/022b290e2628ec08e02b4c4c05357f35ac39606d32b6b8b74f556ea733daa1b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d697263686179652f6c61726176656c2d73686f7070696e672d636172742f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/mirchaye/laravel-shopping-cart/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/43f7cde61f3e5cd5cd51ddfda80f015cc84ab33cfd586118aae81330caf6ae2e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d697263686179652f6c61726176656c2d73686f7070696e672d636172742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mirchaye/laravel-shopping-cart)

This **Shopping Cart Package** is a versatile and user-friendly shopping cart solution for Laravel applications. It empowers developers to effortlessly integrate a shopping cart system into their e-commerce projects.

### ➕ Features:

[](#heavy_plus_sign-features)

- **Easy Cart Management**: Add, update, and remove items from the cart with simple and intuitive methods.
- **Multiple Instances**: Create multiple instances of the cart, each with its own set of items, catering to different requirements.
- **Flexible VAT Handling**: Support for items with or without VAT, giving you control over tax calculations.
- **Custom Tax Rate**: Set the tax rate for the cart to ensure accurate tax calculation based on your region or business rules.
- **Convenient Totals**: Get total, subtotal, and tax amounts with ease, making it a breeze to display accurate cart summaries.
- **Comprehensive Testing**: The package comes with a robust suite of unit tests, ensuring reliable and bug-free functionality.

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

[](#installation)

You can install the package via composer:

```
composer require mirchaye/laravel-shopping-cart
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-shopping-cart-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-shopping-cart-config"
```

This is the contents of the published config file:

```
return [
    'tax_rate' => 15.0,
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-shopping-cart-views"
```

Usage
-----

[](#usage)

```
$shoppingCart = new Mirchaye\ShoppingCart();
echo $shoppingCart->echoPhrase('Hello, Mirchaye!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Micheal Ataklt](https://github.com/mirchaye)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.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

Unknown

Total

1

Last Release

1012d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/29d95e37a7cc54ad24fd72a4452f07dbe16acd7dfdece66e60459c973c45aa2a?d=identicon)[matakltm-code](/maintainers/matakltm-code)

---

Top Contributors

[![matakltm-code](https://avatars.githubusercontent.com/u/65981238?v=4)](https://github.com/matakltm-code "matakltm-code (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelLaravel shopping cartmirchaye

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M225](/packages/laravel-horizon)[lunarstorm/laravel-ddd

A Laravel toolkit for Domain Driven Design patterns

17959.0k](/packages/lunarstorm-laravel-ddd)[bezhansalleh/filament-plugin-essentials

A collection of essential traits that streamline Filament plugin development by taking care of the boilerplate, so you can focus on shipping real features faster

27584.7k16](/packages/bezhansalleh-filament-plugin-essentials)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[jonpurvis/squeaky

A Laravel Validation Rule to Help Catch Profanity.

706.0k](/packages/jonpurvis-squeaky)[blendbyte/filament-title-with-slug

TitleWithSlugInput - Easy Permalink Slugs for the FilamentPHP Form Builder (PHP / Laravel / Livewire)

1322.4k3](/packages/blendbyte-filament-title-with-slug)

PHPackages © 2026

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