PHPackages                             abdulrhmanak/laracart - 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. abdulrhmanak/laracart

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

abdulrhmanak/laracart
=====================

cart for e-commerce project in laravel

0.0.1(2y ago)08MITPHP

Since Sep 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/abdulrhmanak213/laracart)[ Packagist](https://packagist.org/packages/abdulrhmanak/laracart)[ RSS](/packages/abdulrhmanak-laracart/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laracart
========

[](#laracart)

Laracart is a cart package designed for Laravel e-commerce projects. This package provides powerful helpers to manage user carts in your e-commerce application.

How to Use:
-----------

[](#how-to-use)

1. Make sure you have the required migrations for `Product` and `User`.
2. Install the package using Composer:

    ```
    composer require abdulrhmanak213/laracart

    use Abdulrhmanak213\Laracart\Cart;
    ```

// Create a new cart instance $cart = new Cart();

// Show the cart for a specific user (by ID or session ID) $cart-&gt;show($id);

// Add a new product to the cart $cart-&gt;addProduct($product\_id, $id, $quantity, $note);

// Remove a product from the cart $cart-&gt;removeProduct($product\_id, $id);

// Decrease the quantity of a product in the cart $cart-&gt;decreaseProduct($product\_id, $id);

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

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

970d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4547c8db6e3f9910bef779dc174dc87e201c9ea771142f497882e9460479ad97?d=identicon)[abdulrhmanak213](/maintainers/abdulrhmanak213)

---

Top Contributors

[![abd-alrhman-abou-kalam](https://avatars.githubusercontent.com/u/272182360?v=4)](https://github.com/abd-alrhman-abou-kalam "abd-alrhman-abou-kalam (3 commits)")[![abdulrhmanak213](https://avatars.githubusercontent.com/u/108075143?v=4)](https://github.com/abdulrhmanak213 "abdulrhmanak213 (2 commits)")

### Embed Badge

![Health badge](/badges/abdulrhmanak-laracart/health.svg)

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

PHPackages © 2026

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