All Projects → LeadCommerceDE → shopware-sdk

LeadCommerceDE / shopware-sdk

Licence: MIT License
A PHP SDK for the Shopware 5 REST API

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to shopware-sdk

shopware-php-sdk
A PHP SDK for Shopware 6 Admin API
Stars: ✭ 53 (+60.61%)
Mutual labels:  shopware, shopware-sdk
composer-project
Skeleton for Shopware projects with composer
Stars: ✭ 72 (+118.18%)
Mutual labels:  shopware
docs
No description or website provided.
Stars: ✭ 28 (-15.15%)
Mutual labels:  shopware
SwagMediaS3
No description or website provided.
Stars: ✭ 22 (-33.33%)
Mutual labels:  shopware
docker-setup
🐳 Docker setup by Etribes for almost every PHP based web application that needs a webserver and database.
Stars: ✭ 12 (-63.64%)
Mutual labels:  shopware
FroshPluginUploader
Tool for uploading new plugin releases to Shopware Store
Stars: ✭ 26 (-21.21%)
Mutual labels:  shopware
sw-cli-tools
The shopware CLI tools are your console helpers for all kind of shopware tasks
Stars: ✭ 80 (+142.42%)
Mutual labels:  shopware
sw6-media-optimizer
Image Optimizer for Shopware 6 💙
Stars: ✭ 18 (-45.45%)
Mutual labels:  shopware
plentymarkets-shopware-connector
plentymarkets shopware connector plugin
Stars: ✭ 32 (-3.03%)
Mutual labels:  shopware
hubble-frontend-pwa
E-Commerce PWA Frontend
Stars: ✭ 43 (+30.3%)
Mutual labels:  shopware
WbmTagManager
Shopware 5 Plugin for Google Tag Manager integration and dataLayer configuration
Stars: ✭ 24 (-27.27%)
Mutual labels:  shopware
v-shopware-api-client
The reliable way to import and update a bazillion products.
Stars: ✭ 20 (-39.39%)
Mutual labels:  shopware
shopware-docker
A docker setup ready for shopware development
Stars: ✭ 75 (+127.27%)
Mutual labels:  shopware
shopware-cms-generator
Generate a CMS element scaffolding within seconds.
Stars: ✭ 26 (-21.21%)
Mutual labels:  shopware
RecentlyViewedProduct
Recently viewed products plugin for SW6
Stars: ✭ 20 (-39.39%)
Mutual labels:  shopware
shopware5-live-templates
Shopware Live Templates for PhpStorm
Stars: ✭ 14 (-57.58%)
Mutual labels:  shopware
SwagThreeSixtyViewer
No description or website provided.
Stars: ✭ 23 (-30.3%)
Mutual labels:  shopware
idea-php-shopware-plugin
Shopware Plugin for PhpStorm which extends Symfony Plugin
Stars: ✭ 50 (+51.52%)
Mutual labels:  shopware
administration
No description or website provided.
Stars: ✭ 26 (-21.21%)
Mutual labels:  shopware
FroshProductCompare
A Plugin for Shopware 6 - Ecommerce Platform
Stars: ✭ 27 (-18.18%)
Mutual labels:  shopware

LeadCommerce Shopware SDK [OUTDATED / NO LONGER MAINTAINED]

A PHP SDK for the Shopware 5 REST API.

!!!! This project is out of date and no longer beeing maintained. There are forks available; e.g. portrino/shopware-sdk or neta-io/shopware-sdk !!!!

STATUS: Looking for a new maintainer!

Code information:

Build Status Coverage Status Code Coverage Scrutinizer Code Climate Scrutinizer Code Quality StyleCI

Package information:

Latest Stable Version Total Downloads Latest Unstable Version License Dependency Status

Installing

composer require leadcommerce/shopware-sdk

Code Docs

See API Docs

Examples

<?php
    require 'vendor/autoload.php';
    
    // Create a new client
    $client = new ShopwareClient('http://shopware.dev/api/', 'user', 'api_key');

    /**
     * set custom options for guzzle
     * the official guzzle documentation contains a list of valid options (http://docs.guzzlephp.org/en/latest/request-options.html) 
     */  
    //$client = new ShopwareClient('http://shopware.dev/api/', 'user', 'api_key', ['cert' => ['/path/server.pem']]);
    
    // Fetch all articles
    $articles = $client->getArticleQuery()->findAll();
    
    // Fetch one article by id
    $article = $client->getArticleQuery()->findOne(1);
    
    // Create an article
    $article = new Article();
    $article->setName("John product doe");
    $article->setDescription("Lorem ipsum");
    // ... <- more setters are required
    $client->getArticleQuery()->create($article);
   
    
    // Update article
    $article->setName("John product doe");
    $updatedArticle = $client->getArticleQuery()->update($article);
    
    // Update multiple articles
    $articleOne = $client->getArticleQuery()->findOne(1);
    $articleOne->setName("John product doe");
    $articleTwo = $client->getArticleQuery()->findOne(2);
    $articleTwo->setName("John product doe 2");
        
    $articles = $client->getArticleQuery()->updateBatch([$articleOne, $articleTwo]);
    
    // Delete an article
    $client->getArticleQuery()->delete(1);
    
    // Delete multiple articles at once
    $client->getArticleQuery()->deleteBatch([1, 2, 3]);
?>

Issues/Features proposals

Here is the issue tracker.

Contributing :-)

License

MIT

Authors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].