PHPackages                             antonythorpe/silvershop-jsonresponse - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. antonythorpe/silvershop-jsonresponse

ActiveSilverstripe-vendormodule[Parsing &amp; Serialization](/categories/parsing)

antonythorpe/silvershop-jsonresponse
====================================

SilverShop submodule that provides JSON responses for cart updates

4.1.0(7mo ago)3512MITPHPPHP ^8.1CI failing

Since Jun 8Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/AntonyThorpe/silvershop-jsonresponse)[ Packagist](https://packagist.org/packages/antonythorpe/silvershop-jsonresponse)[ RSS](/packages/antonythorpe-silvershop-jsonresponse/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

silvershop-jsonresponse
=======================

[](#silvershop-jsonresponse)

SilverShop submodule that provides JSON responses for cart updates

[![CI](https://github.com/AntonyThorpe/silvershop-jsonresponse/actions/workflows/ci.yml/badge.svg)](https://github.com/AntonyThorpe/silvershop-jsonresponse/actions/workflows/ci.yml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e5ca1dba90a0722b95de31c793ab12902e65b58fb9d34ca8c312ef2ba32d7233/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f416e746f6e7954686f7270652f73696c76657273686f702d6a736f6e726573706f6e73652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/AntonyThorpe/silvershop-jsonresponse/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/79f2dd1c006d624368fecb82f987dcd390981ea4b7f9f4019f9cd6631dc12955/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7974686f7270652f73696c76657273686f702d6a736f6e726573706f6e73652f762f737461626c65)](https://packagist.org/packages/antonythorpe/silvershop-jsonresponse)[![Total Downloads](https://camo.githubusercontent.com/2bb0e2775e00611fcc487a2fcfa316e7f2176ddf4c8f4e08761a83f399bfdc52/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7974686f7270652f73696c76657273686f702d6a736f6e726573706f6e73652f646f776e6c6f616473)](https://packagist.org/packages/antonythorpe/silvershop-jsonresponse)[![License](https://camo.githubusercontent.com/e8127f5be63baf31c5ec16220b19376aa0b751517b27b7c29533e31bddcc5012/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7974686f7270652f73696c76657273686f702d6a736f6e726573706f6e73652f6c6963656e7365)](https://packagist.org/packages/antonythorpe/silvershop-jsonresponse)

Based upon the excellent work of Mark Guinn with [SilverShop Ajax](https://github.com/markguinn/silverstripe-shop-ajax/blob/master/README.md).

How it works
------------

[](#how-it-works)

Utilises the SilverShop extension points to provide a JSON response for cart changes.

Use Case
--------

[](#use-case)

Enhanced UX utilising a MV\* Javascript library.

Features
--------

[](#features)

- Additional endpoint of `shoppingcart/get` to obtain a JSON copy of the cart
- JSON includes urls to `addLink`, `removeLink`, `removeallLink`, and `setquantityLink` for each product item in the cart
- JSON includes image link, height, width, and alt for each item in the cart
- Includes Subtotal and Grandtotal
- Extension points for all endpoints, plus also for Modifiers

Limitations
-----------

[](#limitations)

Variations or the clear method have not been used in production.

Requirements
------------

[](#requirements)

- [SilverShop (a Silverstripe module)](https://github.com/silvershop/silvershop-core)

Documentation
-------------

[](#documentation)

[Index](/docs/en/index.md)

Support
-------

[](#support)

None sorry

Contributions
-------------

[](#contributions)

[Link](contributing.md)

Change Log
----------

[](#change-log)

[Link](changelog.md)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance64

Regular maintenance activity

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity77

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

Recently: every ~706 days

Total

7

Last Release

217d ago

Major Versions

1.0.0 → 2.0.02016-07-12

2.0.1 → 3.0.02020-11-24

3.1.0 → 4.0.02024-06-10

PHP version history (2 changes)1.0.0PHP ^5.4

4.0.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![AntonyThorpe](https://avatars.githubusercontent.com/u/1023740?v=4)](https://github.com/AntonyThorpe "AntonyThorpe (18 commits)")

---

Tags

jsonsilvershopsilverstripejsonsilverstripeajaxecommercesilvershop

### Embed Badge

![Health badge](/badges/antonythorpe-silvershop-jsonresponse/health.svg)

```
[![Health](https://phpackages.com/badges/antonythorpe-silvershop-jsonresponse/health.svg)](https://phpackages.com/packages/antonythorpe-silvershop-jsonresponse)
```

###  Alternatives

[jquery-form/form

The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use AJAX.

5.2k240.8k6](/packages/jquery-form-form)[silvershop/core

Provides an ecommerce product catalog, shopping cart, and order management system

11340.7k48](/packages/silvershop-core)[phptek/jsontext

JSON storage, querying and modification.

2222.2k2](/packages/phptek-jsontext)[sunnysideup/ecommerce

Silverstripe E-commerce Application

247.3k84](/packages/sunnysideup-ecommerce)[unclecheese/silverstripe-serialised-dbfields

Provides serialised data (YAML, JSON) in text fields that are traverseable as nested ViewableData objects.

106.2k](/packages/unclecheese-silverstripe-serialised-dbfields)

PHPackages © 2026

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