{"id":13765555,"url":"https://github.com/neta-io/shopware-sdk","last_synced_at":"2025-12-15T01:31:11.464Z","repository":{"id":57025335,"uuid":"147497159","full_name":"neta-io/shopware-sdk","owner":"neta-io","description":"A PHP SDK for the Shopware 5 REST API","archived":false,"fork":true,"pushed_at":"2025-01-28T16:21:57.000Z","size":444,"stargazers_count":3,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-20T20:06:09.608Z","etag":null,"topics":["php","sdk","shopware"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"portrino/shopware-sdk","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neta-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-05T09:57:20.000Z","updated_at":"2025-01-28T16:22:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/neta-io/shopware-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neta-io%2Fshopware-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neta-io%2Fshopware-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neta-io%2Fshopware-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neta-io%2Fshopware-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neta-io","download_url":"https://codeload.github.com/neta-io/shopware-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253485024,"owners_count":21915938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","sdk","shopware"],"created_at":"2024-08-03T16:00:41.155Z","updated_at":"2025-12-15T01:31:06.403Z","avatar_url":"https://github.com/neta-io.png","language":"PHP","funding_links":[],"categories":["Connectors"],"sub_categories":[],"readme":"A PHP SDK for Shopware 5 REST API\n-----------------\n\nCode Information:  \n[![Build Status](https://travis-ci.org/neta-io/shopware-sdk.png?branch=master)](https://travis-ci.org/neta-io/shopware-sdk)\n[![Code Coverage Scrutinizer](https://scrutinizer-ci.com/g/neta-io/shopware-sdk/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/neta-io/shopware-sdk/?branch=master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/neta-io/shopware-sdk/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/neta-io/shopware-sdk/?branch=master)\n[![StyleCI](https://styleci.io/repos/147497159/shield)](https://styleci.io/repos/147497159)\n\nPackage Information:  \n[![Latest Stable Version](https://poser.pugx.org/neta-io/shopware-sdk/v/stable)](https://packagist.org/packages/neta-io/shopware-sdk)\n[![Total Downloads](https://poser.pugx.org/neta-io/shopware-sdk/downloads)](https://packagist.org/packages/neta-io/shopware-sdk)\n[![License](https://poser.pugx.org/neta-io/shopware-sdk/license)](https://packagist.org/packages/neta-io/shopware-sdk)\n\n## Requirement\nPHP \u003e= 7.2\n\n## Installing\n\n```bash\ncomposer require neta-io/shopware-sdk\n```\n\n## Code Docs\nSee [API Docs](http://neta-io.github.io/shopware-sdk/)\n\n## Examples\n```php\n\u003c?php\n    require 'vendor/autoload.php';\n    \n    // Create a new client\n    $client = new ShopwareClient('http://shopware.dev/api/', 'user', 'api_key');\n\n    /**\n     * set custom options for guzzle\n     * the official guzzle documentation contains a list of valid options (http://docs.guzzlephp.org/en/latest/request-options.html) \n     */  \n    //$client = new ShopwareClient('http://shopware.dev/api/', 'user', 'api_key', ['cert' =\u003e ['/path/server.pem']]);\n    \n    // Fetch all articles\n    $articles = $client-\u003egetArticleQuery()-\u003efindAll();\n    \n    // Fetch one article by id\n    $article = $client-\u003egetArticleQuery()-\u003efindOne(1);\n    $article-\u003egetName();\n    $article-\u003egetDescription();\n    $article-\u003eget('mainDetail.id'); // Nested fields\n    $article-\u003eget('customField');\n    \n    // Create an article\n    $article = new Article();\n    $article-\u003esetName(\"John product doe\");\n    $article-\u003esetDescription(\"Lorem ipsum\");\n    // ... \u003c- more setters are required\n    $client-\u003egetArticleQuery()-\u003ecreate($article);\n   \n    \n    // Update article\n    $article-\u003esetName(\"John product doe\");\n    $updatedArticle = $client-\u003egetArticleQuery()-\u003eupdate($article);\n    \n    // Update multiple articles\n    $articleOne = $client-\u003egetArticleQuery()-\u003efindOne(1);\n    $articleOne-\u003esetName(\"John product doe\");\n    $articleTwo = $client-\u003egetArticleQuery()-\u003efindOne(2);\n    $articleTwo-\u003esetName(\"John product doe 2\");\n        \n    $articles = $client-\u003egetArticleQuery()-\u003eupdateBatch([$articleOne, $articleTwo]);\n    \n    // Delete an article\n    $client-\u003egetArticleQuery()-\u003edelete(1);\n    \n    // Delete multiple articles at once\n    $client-\u003egetArticleQuery()-\u003edeleteBatch([1, 2, 3]);\n    \n    // Find article by parameters\n    $client-\u003egetArticleQuery()-\u003efindByParams([\n        'limit' =\u003e 10,\n        'start' =\u003e 20,\n        'sort' =\u003e [\n            [\n                'property' =\u003e 'name',\n                'direction' =\u003e \\Neta\\Shopware\\SDK\\Util\\Constants::ORDER_ASC\n            ]\n        ],\n        'filter' =\u003e [\n            [\n                'property' =\u003e 'name',\n                'expression' =\u003e 'LIKE',\n                'value' =\u003e '%' . $term . '%'\n            ],\n            [\n                'operator' =\u003e 'AND',\n                'property' =\u003e 'number',\n                'expression' =\u003e '\u003e',\n                'value' =\u003e '500'\n            ]\n        ]\n    ]);\n?\u003e\n```\n\n## Issues/Features proposals\n\n[Here](https://github.com/neta-io/shopware-sdk/issues) is the issue tracker.\n\n## Contributing\n* Write some code\n* Write some tests\n* Make a pull request\n\n## License\n\n[MIT](LICENSE)\n\n## TODO\n- [ ] More tests\n- [ ] Generate docs\n- [ ] Fluent query builder\n- [ ] out-of-the-box pagination\n- [ ] Bugs\n    - [ ] apiUrl: http://example/api doesn't work. It must have a trailing slash in order to work.\n    - [ ] Invalid response doesn't throw an exception. instead `Symfony\\Component\\Debug\\Exception\\FatalThrowableError  : Call to a member function getId() on array`\n\n## Credits\n\nThis package has been forked from:\n[portrino GmbH](https://github.com/portrino/shopware-sdk) \n[leadcommerce](https://github.com/LeadCommerceDE/shopware-sdk) \n\nOriginally authored by \n- [Alexander Mahrt](https://github.com/cyruxx)\n- [Jochen Niebuhr](https://github.com/jniebuhr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneta-io%2Fshopware-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneta-io%2Fshopware-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneta-io%2Fshopware-sdk/lists"}