PHP code example of genyaa / shopware-api-sdk

1. Go to this page and download the library: Download genyaa/shopware-api-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

genyaa / shopware-api-sdk example snippets


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

use GeNyaa\ShopwareApiSdk\Dto\Resources\Category;

shopwareCollect(Category::class, []);

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

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

shopwareHeader([
    'headerName' => 'headerValue',
]);
bash
php artisan vendor:publish --provider="GeNyaa\ShopwareApiSdk\ShopwareApiSdkServiceProvider" --tag="config"