https://github.com/eosnewmedia/shopwaresdkbundle
Symfony integration for enm/shopware-sdk
https://github.com/eosnewmedia/shopwaresdkbundle
shopware-sdk symfony-bundle
Last synced: 7 months ago
JSON representation
Symfony integration for enm/shopware-sdk
- Host: GitHub
- URL: https://github.com/eosnewmedia/shopwaresdkbundle
- Owner: eosnewmedia
- License: mit
- Created: 2016-11-01T09:04:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-09-09T12:34:17.000Z (about 6 years ago)
- Last Synced: 2025-03-16T19:17:29.661Z (7 months ago)
- Topics: shopware-sdk, symfony-bundle
- Language: PHP
- Homepage:
- Size: 63.5 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Shopware SDK Bundle
=======================
A symfony integration for [enm/shopware-sdk](https://github.com/eosnewmedia/ShopwareSdk).The Bundle provides the default implementation of `enm/shopware-sdk` with `guzzlehttp/guzzle` and `jms/serializer` as service.
It requires the `jms/serializer-bundle` to be enabled in the `AppKernel`.
[](https://travis-ci.org/eosnewmedia/ShopwareSdkBundle)
[](https://insight.sensiolabs.com/projects/77b8f306-eefe-45a0-8500-c5ca6a7f56a0)## Installation
composer require enm/shopware-sdk-bundle
In your `AppKernel`:
/**
* @return array
*/
public function registerBundles()
{
$bundles = [
// ...
new \JMS\SerializerBundle\JMSSerializerBundle(),
new \Enm\Bundle\ShopwareSdk\EnmShopwareSdkBundle(),
];
// ...
return $bundles;
}## Configuration
Simply configure your shop connection over the global `config.yml`:enm_shopware_sdk:
base_url: "http://your-shop.com"
username: "test"
api_key: "test"This bundle overwrites the default naming strategy of the serializer with `IdenticalPropertyNamingStrategy`.
## Usage
/** @var \Enm\Bundle\ShopwareSdk\EntryPoint $shopwareClient */
$entryPoint = $container->get('enm.shopware.entry_point');## Tests
php vendor/bin/phpunit