PHPackages                             muratdemirel/codeigniter4-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. muratdemirel/codeigniter4-cart

ActiveLibrary[Framework](/categories/framework)

muratdemirel/codeigniter4-cart
==============================

CodeIgniter4 Cart.

v0.1.3(3y ago)337MITPHP

Since May 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/MuratDemirel/codeigniter4-cart)[ Packagist](https://packagist.org/packages/muratdemirel/codeigniter4-cart)[ RSS](/packages/muratdemirel-codeigniter4-cart/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

CodeIgniter4 Shopping Cart
==========================

[](#codeigniter4-shopping-cart)

Ported from

A simple cart module for CodeIgniter4.

Overview
--------

[](#overview)

Look at one of the following topics to learn more about CodeIgniter4 ShoppingCart

- [Installation](#installation)
- [Usage](#usage)
- [Collections](#collections)
- [Instances](#instances)
- [Exceptions](#exceptions)
- [Events](#events)
- [Example](#example)
- [License](#license)

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

[](#installation)

Install the package through [Composer](http://getcomposer.org/).

Run the Composer require command from the Terminal:

```
composer require muratdemirel/codeigniter4-cart

```

To publish config file, run the command below from the terminal:

```
php spark cart:publish

```

This will give you a `Cart.php` config file in which you can make the changes.

After check &amp; update your config file, run the command below on your terminal to generate tables:

```
php spark migrate -n 'MuratDemirel\Cart'

```

It's all for setting up.

\##Usage

- [Initialize](#initialize)

\###Initialize

```
// Via services
$cart = \MuratDemirel\Cart\Config\Services::cart();
$cart->add();

// Traditional way
$cart = new \MuratDemirel\Cart\Cart();
$cart->add();

// Static call
use MuratDemirel\Cart\Facades\Cart;
Cart::add()
```

\##Collections

Soon..

\##Instances

Soon..

\##Exceptions

Soon..

\##Events

Soon..

\##Example

Soon

License
-------

[](#license)

This package is free software distributed under the terms of the [MIT license](LICENSE.md).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

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.

###  Release Activity

Cadence

Every ~8 days

Total

4

Last Release

1419d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b297b859d06573f43463c33fc9543234b43e9252e782a24d2ec21c6903f28d8?d=identicon)[MuratDemirel](/maintainers/MuratDemirel)

---

Top Contributors

[![MuratDemirel](https://avatars.githubusercontent.com/u/1329420?v=4)](https://github.com/MuratDemirel "MuratDemirel (10 commits)")

---

Tags

cartshopping cartcodeigniter4

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/muratdemirel-codeigniter4-cart/health.svg)

```
[![Health](https://phpackages.com/badges/muratdemirel-codeigniter4-cart/health.svg)](https://phpackages.com/packages/muratdemirel-codeigniter4-cart)
```

###  Alternatives

[darryldecode/cart

Laravel 5 Shopping cart

1.4k1.7M7](/packages/darryldecode-cart)[lukepolo/laracart

A simple cart for Laravel

583135.4k1](/packages/lukepolo-laracart)[agungsugiarto/codeigniter4-shoppingcart

CodeIgniter4 shopping cart.

201.5k](/packages/agungsugiarto-codeigniter4-shoppingcart)[anam/phpcart

Simple framework agnostic shopping cart

12115.4k](/packages/anam-phpcart)

PHPackages © 2026

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