PHPackages                             neccoys/ezcart - 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. neccoys/ezcart

ActiveLibrary[Framework](/categories/framework)

neccoys/ezcart
==============

A easy cart for Laravel

01PHP

Since Dec 23Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

EzCart
------

[](#ezcart)

Introduction
------------

[](#introduction)

A easy cart for Laravel

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

[](#installation)

```
// composer
composer require neccoys/ezcart

// publish
php artisan vendor:publish --provider="Neccoys\EzCart\EzCartServiceProvider"
```

Quick Usage Example
-------------------

[](#quick-usage-example)

```
// Add item
EzCart::add(
    $itemID,
    $name = null,
    $qty = 1,
    $price = '0.00',
    $options = [],
    $lineItem = false
)

$item = EzCart::add(2, 'T-shirt', 200, 15, [
    'size' => 'L'
]);

$itemHash = $item->getHash();

// Update item
EzCart::updateItem($item->getHash(), 'size', 'M');

// Remove item
EzCart::removeItem($item->getHash());

// Find items (array)
$items = EzCart::find(['name' => 'product001']);

// Empty cart
EzCart::emptyCart();

// Destroy cart
EzCart::destroyCart();
```

Coupons &amp; Fee
-----------------

[](#coupons--fee)

```
// Fixed amount
// you can set 'minAmount'
$couponFixed = new Fixed("coupon002", 35,  [
    'description' => "test fixed coupon",
    'minAmount' => 45,
]);

EzCart::addCoupons($couponFixed);

// Percentage
// you can set 'minAmount', 'maxDiscount'
$couponPercentage = new Percentage("coupon001", .8,  [
    'description' => "test percent",
    'minAmount' => 0,
    'maxDiscount' => 0
]);

EzCart::addCoupons($couponPercentage);
```

Total
-----

[](#total)

```
// Items totals
EzCart::itemTotals();

// Totals (tax)
EzCart::total();

// SubTotal (coupons + tax)
EzCart::subTotal();
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/685b510f98b5ceb9be1bd75e601023203f6abd73fde966c6b7c802607044cf4c?d=identicon)[neccoys](/maintainers/neccoys)

---

Top Contributors

[![neccohuang](https://avatars.githubusercontent.com/u/58159880?v=4)](https://github.com/neccohuang "neccohuang (2 commits)")

### Embed Badge

![Health badge](/badges/neccoys-ezcart/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M257](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M593](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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