PHPackages                             it-bens/shopware-sdk-bundle - 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. it-bens/shopware-sdk-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

it-bens/shopware-sdk-bundle
===========================

Bundle for the Shopware PHP SDK.

v0.7.0(1y ago)21.9k[7 PRs](https://github.com/it-bens/shopware-php-sdk-bundle/pulls)MITPHPPHP ^8.3 || ^8.4CI passing

Since Oct 12Pushed 1mo agoCompare

[ Source](https://github.com/it-bens/shopware-php-sdk-bundle)[ Packagist](https://packagist.org/packages/it-bens/shopware-sdk-bundle)[ RSS](/packages/it-bens-shopware-sdk-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (19)Versions (18)Used By (0)

Shopware 6 SDK Bundle for Symfony
=================================

[](#shopware-6-sdk-bundle-for-symfony)

[![Static Badge](https://camo.githubusercontent.com/2b120a2c324dfe3170a25cfb6582028ae5c439bd13049ef3b625c8283a0aa39b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332d3839393362653f6c6f676f3d706870)](https://camo.githubusercontent.com/2b120a2c324dfe3170a25cfb6582028ae5c439bd13049ef3b625c8283a0aa39b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332d3839393362653f6c6f676f3d706870)[![Static Badge](https://camo.githubusercontent.com/795a4fb5bc82a8a389b249d9c748aa3fc186a780694bff9d987b4c999ef2be4a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342d3839393362653f6c6f676f3d706870)](https://camo.githubusercontent.com/795a4fb5bc82a8a389b249d9c748aa3fc186a780694bff9d987b4c999ef2be4a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342d3839393362653f6c6f676f3d706870)[![Static Badge](https://camo.githubusercontent.com/523ce9da87dcc5ffed0517b8289b413212397e0ce92ef39b815e470763c52e42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d362e342d3030303030303f6c6f676f3d73796d666f6e79)](https://camo.githubusercontent.com/523ce9da87dcc5ffed0517b8289b413212397e0ce92ef39b815e470763c52e42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d362e342d3030303030303f6c6f676f3d73796d666f6e79)[![Static Badge](https://camo.githubusercontent.com/cd5893c52a88f475172ebe6ca89a84d1b65c37835599ca3ba65dd3a689b52f4b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d372e312d3030303030303f6c6f676f3d73796d666f6e79)](https://camo.githubusercontent.com/cd5893c52a88f475172ebe6ca89a84d1b65c37835599ca3ba65dd3a689b52f4b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d372e312d3030303030303f6c6f676f3d73796d666f6e79)[![Static Badge](https://camo.githubusercontent.com/99a0f66115c8032c0104ee30b5e2255dc93636f865f62423bd8c71a40d8ae2e8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53686f70776172652d362e352d3138396566663f6c6f676f3d73686f7077617265)](https://camo.githubusercontent.com/99a0f66115c8032c0104ee30b5e2255dc93636f865f62423bd8c71a40d8ae2e8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53686f70776172652d362e352d3138396566663f6c6f676f3d73686f7077617265)[![Static Badge](https://camo.githubusercontent.com/f0f81df93cbdf3b693728bb625e29bbe635174df3982b5d74f1ed243b6a7daa4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53686f70776172652d362e362d3138396566663f6c6f676f3d73686f7077617265)](https://camo.githubusercontent.com/f0f81df93cbdf3b693728bb625e29bbe635174df3982b5d74f1ed243b6a7daa4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53686f70776172652d362e362d3138396566663f6c6f676f3d73686f7077617265)[![Packagist Version](https://camo.githubusercontent.com/8e976e3721c7ad7ec9a80a2d8c2c79e6aaac42c5eddc2d147210dc824de0fe85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69742d62656e732f73686f70776172652d73646b2d62756e646c65)](https://camo.githubusercontent.com/8e976e3721c7ad7ec9a80a2d8c2c79e6aaac42c5eddc2d147210dc824de0fe85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69742d62656e732f73686f70776172652d73646b2d62756e646c65)[![codecov](https://camo.githubusercontent.com/e63d8dbc29393dbbfde9d4ceb80dbc977f6e62b0d69df66922fbc177ef42cc53/68747470733a2f2f636f6465636f762e696f2f67682f69742d62656e732f73686f70776172652d7068702d73646b2d62756e646c652f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d70624b48394f577a3574)](https://codecov.io/gh/it-bens/shopware-php-sdk-bundle)

This bundle wraps the [Shopware 6 SDK](https://github.com/it-bens/shopware-php-sdk) into a Symfony bundle.

The bundle is tested with PHP Symfony 6.4 (PHP 8.3, PHP 8.4) and with Symfony 7.1 (PHP 8.3, PHP 8.4).

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

[](#installation)

### Applications that use Symfony Flex

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
composer require it-bens/shopware-sdk-bundle
```

### Applications that don't use Symfony Flex

[](#applications-that-dont-use-symfony-flex)

#### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
composer require it-bens/shopware-sdk-bundle
```

#### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    ITB\ShopwareSdkBundle\ITBShopwareSdkBundle::class => ['all' => true],
];
```

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

[](#requirements)

- PHP 8.3 or higher
- Symfony 6.4 / 7.1 or higher
- a PSR-7 implementation
- a PSR-16 implementation (not required if the access token cache is disabled)
- a PSR-17 implementation
- a PSR-18 implementation
- a PSR-20 implementation

The PSR implementations can be chosen freely.

Configuration
-------------

[](#configuration)

Add the following configuration to your `config/packages/itb_shopware_sdk.yaml`:

```
itb_shopware_sdk:
  shop_url: 'https://shopware.local'
  shopware_version: '6.5.5.0'
  credentials:
    grant_type: 'client_credentials'
    client_id: 'CLIENT_ID'
    client_secret: 'CLIENT_SECRET'
  cache: 'simple_cache.app'
```

```
