PHPackages                             levelfivehub/simplecart - 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. levelfivehub/simplecart

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

levelfivehub/simplecart
=======================

A Cart handling module for adding/updating/removing items. This module is for Zend Framework 2 only.

v1.2.3(10y ago)016BSD-3-ClausePHPPHP &gt;=5.5

Since Sep 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/levelfivehub/simplecart)[ Packagist](https://packagist.org/packages/levelfivehub/simplecart)[ RSS](/packages/levelfivehub-simplecart/feed)WikiDiscussions develop Synced 2d ago

READMEChangelog (7)Dependencies (5)Versions (9)Used By (0)

Simple Cart for Zend Framework 2
================================

[](#simple-cart-for-zend-framework-2)

[![Build Status](https://camo.githubusercontent.com/32fd10497ca7324a8a84278118942b102f341686d1bdf4f2d7f4b70806bcf24a/68747470733a2f2f7472617669732d63692e6f72672f6c6576656c666976656875622f73696d706c65636172742e737667)](https://travis-ci.org/levelfivehub/simplecart) [![Coverage Status](https://camo.githubusercontent.com/eeb576717bc67d33fd1b069492c3c88812623690e8008f5e9918e905673cc665/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6c6576656c666976656875622f73696d706c65636172742f62616467652e7376673f6272616e63683d646576656c6f7026736572766963653d676974687562)](https://coveralls.io/github/levelfivehub/simplecart?branch=develop)

*Please note; this only works with Zend Framework 2 as we use the Zend Validator and Zend Session components*

This simple cart cannot get any simpler.

Initialise the cart with a name

```
$simpleCart = new SimpleCart('test');
```

To add an item

```
$item = [
    'name' => 'Red Balloon',
    'uniqueId' => 'RED001',
    'amount' => 10.99,
    'quantity' => '1',
    'currency' => 'GBP' // optional
];

$simpleCart->addItem($item);
```

To update an item

```
$simpleCart->updateItem('RED001', 3);
```

To remove an item

```
$simpleCart->removeItem('RED001');
```

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

Maturity63

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 ~1 days

Total

7

Last Release

3931d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ee17ca4e9e509e90e7bfd71218f717d868d65deca8c9cb324eb83cb07a9c333b?d=identicon)[levelfivehub](/maintainers/levelfivehub)

---

Top Contributors

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

---

Tags

phpshopping cartsimple cart

### Embed Badge

![Health badge](/badges/levelfivehub-simplecart/health.svg)

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

###  Alternatives

[pestphp/pest

The elegant PHP Testing Framework.

11.6k72.2M20.6k](/packages/pestphp-pest)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)[humanmade/coding-standards

Human Made Coding Standards

160443.1k59](/packages/humanmade-coding-standards)

PHPackages © 2026

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