lmadev / shopware-api
Vendor library for connection with Api Shopware.
2.1.7
2019-09-27 12:00 UTC
Requires
- php: >=7.1.3
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ^8.3@dev
README
Vendor library for connection with Api Shopware 5.x platform.
Requirements
- Shopware 5.x or higher
- PHP 7.1.3 or higher
Installation
Download the plugin from the release page and enable it in shopware.
Usage
Update your services.yaml
in your /config directory and fill in your own values
parameters:
lma_dev.shopware_api.user: {user}
lma_dev.shopware_api.api_key: {api_key}
lma_dev.shopware_api.shop_url: https://example.dev/api
services:
# default configuration for services in *this* file
LmaDev\ShopwareApi\ConnectionApi:
bind:
string $baseUri: '%lma_dev.shopware_api.shop_uri%'
string $user: '%lma_dev.shopware_api.user%'
string $apiKey: '%lma_dev.shopware_api.api_key%'
How to use
You can bet from your store's APi by calling the following methods:
- get
- post
- put
- delete
Contributing
Feel free to fork and send pull requests!
Licence
This project uses the MIT License.