PHPackages                             coddin/magento2-cartbridge - 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. coddin/magento2-cartbridge

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

coddin/magento2-cartbridge
==========================

CartBridge by Coddin

1.0.5(4y ago)05.7k↓56%MITPHPPHP &gt;=7.4.0

Since Mar 31Pushed 4y ago2 watchersCompare

[ Source](https://github.com/coddin-web/magento2-cartbridge)[ Packagist](https://packagist.org/packages/coddin/magento2-cartbridge)[ RSS](/packages/coddin-magento2-cartbridge/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

[![build](https://github.com/coddin-web/magento2-cartbridge/actions/workflows/main.yml/badge.svg?event=push)](https://github.com/coddin-web/magento2-cartbridge/actions/workflows/main.yml/badge.svg?event=push)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![codecov](https://camo.githubusercontent.com/2e6e7b64d77fc1102b16a683641a77d2b60332f6fbfc3f2a151e0db3382cc550/68747470733a2f2f636f6465636f762e696f2f67682f636f6464696e2d7765622f6d6167656e746f322d636172746272696467652f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4d3033543848564b4e57)](https://codecov.io/gh/coddin-web/magento2-cartbridge)

Magento 2 CartBridge
====================

[](#magento-2-cartbridge)

A module to easily add items to an existing Guest/Customer cart programmatically

The only dependency it has is: it has to know about the current Session, either by already being in a programmatic environment that is aware of the current session, or by an AJAX call that has the xhrClientCredentials added to the call

e.g. (jQuery)

```
xhrFields: {
    withCredentials: true
},

```

### Installation

[](#installation)

```
$ composer require coddin/magento2-cartbridge
```

### Testing

[](#testing)

The tests can be run within a Magento 2 instance by using this command:

```
./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist vendor/coddin/magento2-cartbridge/Test/Unit

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.8% 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 ~5 days

Total

6

Last Release

1528d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/51f79bc7bc85a6f14863b7dda6b9083db73244068711b575e46e5c8a3628b054?d=identicon)[falko100](/maintainers/falko100)

![](https://www.gravatar.com/avatar/14ff57313528ad497507d476da9ad5274da1d988d1bad15b01045c400d2ade6c?d=identicon)[MJTheOne](/maintainers/MJTheOne)

---

Top Contributors

[![mariusjp](https://avatars.githubusercontent.com/u/1510476?v=4)](https://github.com/mariusjp "mariusjp (30 commits)")[![falko100](https://avatars.githubusercontent.com/u/11974977?v=4)](https://github.com/falko100 "falko100 (1 commits)")

### Embed Badge

![Health badge](/badges/coddin-magento2-cartbridge/health.svg)

```
[![Health](https://phpackages.com/badges/coddin-magento2-cartbridge/health.svg)](https://phpackages.com/packages/coddin-magento2-cartbridge)
```

###  Alternatives

[dekuan/dedid

An unique id generator for distributed database by DeKuan, Inc.

221.4k4](/packages/dekuan-dedid)

PHPackages © 2026

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