Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
/ shopware-api-sdk Public archive

This package provides an SDK for Laravel to connect to Shopware 6 default API scheme.

License

Notifications You must be signed in to change notification settings

GeNyaa/shopware-api-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Shopware 6 API SDK

This package provides an SDK for Laravel to connect to Shopware 6 default API scheme.

This package is a WIP and will be updated on the main branch until stable.

How to setup

Publish config file:

php artisan vendor:publish --provider="GeNyaa\ShopwareApiSdk\ShopwareApiSdkServiceProvider" --tag="config"

Initial client:

$client = app(\GeNyaa\ShopwareApiSdk\ShopwareApiClient::class);

Helper functions

shopwareCollect(string $resource, mixed $value = null)

Creates a resource collection of Resource(s).

Example usage:

use GeNyaa\ShopwareApiSdk\Dto\Resources\Category;

shopwareCollect(Category::class, []);

shopwareCustomFields(array $value = []): CustomFields

Creates a CustomFields class from array.

Example usage:

shopwareCustomFields([
    'fieldName' => 'fieldValue',
]);

shopwareParameters(array $value = []): Parameters

Creates a Parameters class from array.

Example usage:

shopwareParameters([
    'parameterName' => 'parameterValue',
]);

shopwareHeader(array $value = []): Header

Creates a Header class from array.

Example usage:

shopwareHeader([
    'headerName' => 'headerValue',
]);

shopwareUuid(): string

Generates a Uuid to Shopware spec.

About

This package provides an SDK for Laravel to connect to Shopware 6 default API scheme.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages