PHPackages                             revinners/shopware6-add-to-basket-plugin - 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. revinners/shopware6-add-to-basket-plugin

ActiveShopware-platform-plugin[Utility &amp; Helpers](/categories/utility)

revinners/shopware6-add-to-basket-plugin
========================================

Add to basket plugin for Shopware 6

1.0.11(2mo ago)0516↓50%MITPHPPHP &gt;=8.2

Since Dec 29Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/revinners/ShopwareAddToBasketPlugin)[ Packagist](https://packagist.org/packages/revinners/shopware6-add-to-basket-plugin)[ RSS](/packages/revinners-shopware6-add-to-basket-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (13)Used By (0)

Add to basket plugin for Shopware 6
===================================

[](#add-to-basket-plugin-for-shopware-6)

The plugin provides a simple API endpoint to add products to the shopping cart.

If you'd like to learn more or work with us, visit our website at [revinners.com](https://revinners.com) for more information.

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

[](#installation)

```
composer require revinners/shopware6-add-to-basket-plugin # add the plugin to your Shopware project
./bin/console plugin:refresh # refresh the plugin list
./bin/console plugin:install --activate RevinnersAddToBasket # install and activate the plugin
```

Usage
-----

[](#usage)

Call the API endpoint with the SKU and quantity of the product to add. The endpoint will return a JSON response.

**Endpoint**: `/add-to-basket`
**Method**: `GET`
**Parameters**:

- `sku` (string, required): The SKU (product number) of the product to add.
- `qty` (integer, required): The quantity of the product to add.

### Example Request

[](#example-request)

```
https://example.com/add-to-basket?sku=SW10001&qty=2

```

### Example Responses

[](#example-responses)

```
{
  "success": true,
  "message": "Product added to the basket"
}
```

```
{
  "success": false,
  "message": "Product with SKU SW10001 not found"
}
```

```
{
  "success": false,
  "message": "Validation failed",
  "errors": [
    "SKU is required",
    "Quantity must be a positive integer"
  ]
}
```

Testing
-------

[](#testing)

- `./vendor/bin/phpunit --configuration="custom/plugins/RevinnersAddToBasket" --color` - run the tests
- `./vendor/bin/ecs check src` - run the code style check
- `./vendor/bin/phpstan analyse src` - run the static analysis

License
-------

[](#license)

This plugin is licensed under the MIT License. You are free to use, modify, and distribute this software in accordance with the terms of the license.

For more details, see the [LICENSE](LICENSE) file included in this repository.

About us
--------

[](#about-us)

At Revinners, we specialize in building e-commerce shops and developing custom plugins based on the Shopware 6 platform. Our goal is to deliver efficient, scalable, and tailored solutions to meet the unique needs of online businesses.

If you'd like to learn more or work with us, visit our website at [revinners.com](https://revinners.com) for more information.

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance85

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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 ~38 days

Recently: every ~25 days

Total

12

Last Release

76d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c90a7a5d12959f22ae73d4fe81d63d9045c078ee20ccb99bd547a17e86efe21?d=identicon)[revinners](/maintainers/revinners)

---

Top Contributors

[![98Nowakowski](https://avatars.githubusercontent.com/u/46371047?v=4)](https://github.com/98Nowakowski "98Nowakowski (13 commits)")[![flytomek](https://avatars.githubusercontent.com/u/37069663?v=4)](https://github.com/flytomek "flytomek (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/revinners-shopware6-add-to-basket-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/revinners-shopware6-add-to-basket-plugin/health.svg)](https://phpackages.com/packages/revinners-shopware6-add-to-basket-plugin)
```

###  Alternatives

[frosh/tools

Provides some basic things for managing the Shopware Installation

79709.7k2](/packages/frosh-tools)[frosh/development-helper

Development Helper

90286.1k](/packages/frosh-development-helper)[shopware-pwa/shopware-pwa

Shopware PWA extension

4074.0k](/packages/shopware-pwa-shopware-pwa)[swag/migration-assistant

Migration plugin for shopware/platform

2036.3k](/packages/swag-migration-assistant)[werkstattl/openblogware

OpenBlogware: A Blog Module for Shopware 6.

415.7k](/packages/werkstattl-openblogware)[basecom/sw6-fixtures-plugin

basecom Fixtures Plugin

18185.5k](/packages/basecom-sw6-fixtures-plugin)

PHPackages © 2026

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