PHPackages                             theill11/shoppingcart - 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. theill11/shoppingcart

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

theill11/shoppingcart
=====================

Lightweight Shopping Cart implemented in PHP

173PHP

Since Mar 4Pushed 11y ago2 watchersCompare

[ Source](https://github.com/theill11/shoppingcart)[ Packagist](https://packagist.org/packages/theill11/shoppingcart)[ RSS](/packages/theill11-shoppingcart/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Shopping Cart
=============

[](#shopping-cart)

Lightweight shopping cart library implemented in PHP. For storage it uses Symfony Session components, where you can switch between several storage handlers or just use native session handling.

[![Build Status](https://camo.githubusercontent.com/ffc7a5c7294aac9e7941f0e42f7efee1e2b248be763647b16f9fa7221d22d56d/68747470733a2f2f7472617669732d63692e6f72672f746865696c6c31312f73686f7070696e67636172742e737667)](https://travis-ci.org/theill11/shoppingcart)[![Dependency Status](https://camo.githubusercontent.com/266f9dff6d56607300022ef8c161b482ae5b4d58a2768b8225988d00ac96b3a2/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3534663734613435346633313038643166613030313763352f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/54f74a454f3108d1fa0017c5)[![Code Coverage](https://camo.githubusercontent.com/9a80ab1b43d53013a2a4967903b8195518956f74c12c89982915fca696ad6319/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746865696c6c31312f73686f7070696e67636172742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/theill11/shoppingcart/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/22dacd2bf4dc564933ab6046922c2294fb90749809d29bdfd3a584d4461f8478/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746865696c6c31312f73686f7070696e67636172742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/theill11/shoppingcart/?branch=master)[![Code Climate](https://camo.githubusercontent.com/1252c08dceb548972791928f7de4058ee1fdd3208b04679c57bd364f07c23fa2/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f746865696c6c31312f73686f7070696e67636172742f6261646765732f6770612e737667)](https://codeclimate.com/github/theill11/shoppingcart)

[![Latest Stable Version](https://camo.githubusercontent.com/4ed493fd0476437a32c7f9198cb2ea40dd92c2aa47be8bcdbc0f2446d31257ca/68747470733a2f2f706f7365722e707567782e6f72672f746865696c6c31312f73686f7070696e67636172742f762f737461626c652e737667)](https://packagist.org/packages/theill11/shoppingcart)[![Latest Unstable Version](https://camo.githubusercontent.com/28b394f3b79894309b5d611bc368dd6b3d7924cd7bf2ed32b203b30ccf1f0797/68747470733a2f2f706f7365722e707567782e6f72672f746865696c6c31312f73686f7070696e67636172742f762f756e737461626c652e737667)](https://packagist.org/packages/theill11/shoppingcart)[![Total Downloads](https://camo.githubusercontent.com/1d0507bfb0797c1202aa0ebfcf014ff6a05010930f5a720f14dd78708026aa7b/68747470733a2f2f706f7365722e707567782e6f72672f746865696c6c31312f73686f7070696e67636172742f646f776e6c6f6164732e737667)](https://packagist.org/packages/theill11/shoppingcart)[![License](https://camo.githubusercontent.com/f00ce30b2ea0cfc4a0d4b82b412952c1dd3a93df9d9c14e4727845c92c427a72/68747470733a2f2f706f7365722e707567782e6f72672f746865696c6c31312f73686f7070696e67636172742f6c6963656e73652e737667)](https://packagist.org/packages/theill11/shoppingcart)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/). Remember to refer to the [composer.json](https://github.com/theill11/shoppingcart/blob/master/composer.json) for this extension's requirements and dependencies.

### Install

[](#install)

Either run

```
$ php composer.phar require theill11/shoppingcart "*"

```

or add

```
"theill11/shoppingcart": "*"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

See [examples/index.php](examples/index.php)

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

[](#contributing)

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

History
-------

[](#history)

See [CHANGELOG.md](CHANGELOG.md)

Credits
-------

[](#credits)

Inspiration taken from the following repositories:

[sashaaro/ShoppingCart](https://github.com/sashaaro/ShoppingCart)

[leaphly/cart](https://github.com/leaphly/cart)

License
-------

[](#license)

theill11/shoppingcart is released under the MIT License. See the bundled [LICENSE.md](LICENSE.md) for details.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/0fd5baf5feb9b57bd92745a72825c60c441189e88d7512509cea7b3771333334?d=identicon)[theill11](/maintainers/theill11)

---

Top Contributors

[![theill11](https://avatars.githubusercontent.com/u/3434113?v=4)](https://github.com/theill11 "theill11 (46 commits)")

### Embed Badge

![Health badge](/badges/theill11-shoppingcart/health.svg)

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

PHPackages © 2026

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