{"id":35140948,"url":"https://github.com/erkineren/shopware_bot","last_synced_at":"2026-05-18T13:03:54.051Z","repository":{"id":56978961,"uuid":"169481219","full_name":"erkineren/shopware_bot","owner":"erkineren","description":"Backend turn into like a restapi","archived":false,"fork":false,"pushed_at":"2019-04-26T14:17:19.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-30T18:44:43.304Z","etag":null,"topics":["bot","shopware"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erkineren.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-06T21:42:16.000Z","updated_at":"2019-04-26T14:21:22.000Z","dependencies_parsed_at":"2022-08-21T08:10:57.602Z","dependency_job_id":null,"html_url":"https://github.com/erkineren/shopware_bot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/erkineren/shopware_bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkineren%2Fshopware_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkineren%2Fshopware_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkineren%2Fshopware_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkineren%2Fshopware_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erkineren","download_url":"https://codeload.github.com/erkineren/shopware_bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkineren%2Fshopware_bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33178727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bot","shopware"],"created_at":"2025-12-28T11:28:48.744Z","updated_at":"2026-05-18T13:03:54.045Z","avatar_url":"https://github.com/erkineren.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shopware Bot\nShopware Bot is library that make your backend turn into like a restapi. \nWith this library, you can do some stuff that built-in shopware rest api does not support.\n\n- Creating invoice and shipping labels\n- Managing pickware plugin stock activities\n- Searching orders, articles, users etc.\n\nFor now, these modules are available:\n  - ArticleModule\n  - CustomerModule\n  - DhlModule\n  - DpdModule\n  - ImportExportModule\n  - LogModule\n  - OrderModule\n  - PickwareModule\n  - PluginsModule\n\n### Installation\n\n```sh\n$ composer require erkineren/shopwarebot\n```\n\n### Quick Start\n\n```php\nuse ShopwareBot\\ShopwareBot;\n\nrequire_once 'vendor/autoload.php';\n\n$shop_url = \"http://shopware.dev\";\n$username = 'user';\n$password = 'password';\n\n$bot = ShopwareBot::getInstance($shop_url);\n\ntry {\n    // login to backend\n    $bot-\u003elogin($username, $password);\n} catch (\\ShopwareBot\\Exceptions\\CsrfException $e) {\n    die($e-\u003egetMessage());\n}\n\n// Orders\n$order = $bot-\u003egetOrderModule()-\u003egetOrderByNumber('12345');\n$orders = $bot-\u003egetOrderModule()-\u003egetList($filter);\n\n// Document\n$bot-\u003egetOrderModule()-\u003egenerateDocumentInvoice($orderId);\n$bot-\u003egetOrderModule()-\u003egenerateDocumentDeliveryNote($orderId);\n$bot-\u003egetOrderModule()-\u003egenerateDocumentCreditNote($orderId);\n$bot-\u003egetOrderModule()-\u003egenerateDocumentReversalInvoice($orderId);\n$bot-\u003egetOrderModule()-\u003egenerateDocument($orderId, $documentType); // custom document\n\n// Customers\n$bot-\u003egetCustomerModule()-\u003egetCustomerById($id);\n$bot-\u003egetCustomerModule()-\u003egetCustomerByNumber($number);\n$bot-\u003egetCustomerModule()-\u003egetCustomersByEmail($email);\n$bot-\u003egetCustomerModule()-\u003egetCustomersByFirstname($firstname);\n$bot-\u003egetCustomerModule()-\u003egetCustomersByFirstname($firstname);\n$bot-\u003egetCustomerModule()-\u003egetCustomersByCustomerGroup($groupName);\n$bot-\u003egetCustomerModule()-\u003egetCustomersByNumber($customernumbers);\n$bot-\u003egetCustomerModule()-\u003esearch($q);\n$bot-\u003egetCustomerModule()-\u003egetBy($property, $value);\n$bot-\u003egetCustomerModule()-\u003egetList($filter);\n$bot-\u003egetCustomerModule()-\u003egetDetail($customerID);\n$bot-\u003egetCustomerModule()-\u003egetUserAddressList($customerId);\n$bot-\u003egetCustomerModule()-\u003egetUserOrders($customerID);\n$bot-\u003egetCustomerModule()-\u003egetOrderChart($customerID);\n$bot-\u003egetCustomerModule()-\u003egetUserPickwareArticles($customerID);\n$bot-\u003egetCustomerModule()-\u003edelete($userId);\n\n// Cache\n$bot-\u003egetCacheModule()-\u003eclearShopCache();\n\n// Logs\n$bot-\u003egetLogModule()-\u003ecreateLog('Some logged data');\n\n\n// ImportExport Plugin\n$bot-\u003egetImportExportModule()-\u003egetProfiles();\n$bot-\u003egetImportExportModule()-\u003egetProfiles();\n$bot-\u003egetImportExportModule()-\u003eprepareExport($data);\n$bot-\u003egetImportExportModule()-\u003eexportPartially(ImportExportModule::ARTICLES_COMPLETE, $limit); // for big data\n$bot-\u003egetImportExportModule()-\u003edownload($filename, 'files/saveto.csv');\n\n\n// Pickware DPD,DHL adapters plugins\n$bot-\u003egetDpdModule()-\u003egetShippingOrderData($orderId);\n$bot-\u003egetDpdModule()-\u003egetAllLabels($orderId);\n$bot-\u003egetDpdModule()-\u003egetTrackingUrls($trackingCodes);\n$bot-\u003egetDpdModule()-\u003egetCountries();\n$bot-\u003egetDpdModule()-\u003egetAllConfigurations();\n$bot-\u003egetDpdModule()-\u003egetProducts();\n$bot-\u003egetDpdModule()-\u003egetOrderConfigData($shopId);\n$bot-\u003egetDpdModule()-\u003ecalculateShippingWeight($orderId);\n$bot-\u003egetDpdModule()-\u003egetMergedLabelsForOrder($orderId);\n$bot-\u003egetDpdModule()-\u003egetLabelPdf($code);\n$bot-\u003egetDpdModule()-\u003egetReturnLabelPdf($code);\n// create shipping label\n$bot-\u003egetDpdModule()-\u003ecreateLabel([\n                'orderId' =\u003e $orderId,\n                'detailsFirstName' =\u003e $address['firstname'],\n                'detailsLastName' =\u003e $address['lastname'],\n                'detailsStreet' =\u003e $address['street'],\n                'detailsStreetNumber' =\u003e $address['no'],\n                'detailsZipCode' =\u003e $address['postalcode'],\n                'detailsCity' =\u003e $address['city'],\n                'detailsStateId' =\u003e 0,\n                'detailsCountryId' =\u003e $country['id'],\n                'detailsEmail' =\u003e $address['email'],\n                'packagingWeight' =\u003e 5\n            ]);\n\n// get shipping label that created from DPD plugin\nob_clean();\nheader(\"Content-type:application/pdf\");\nheader(\"Content-Disposition:attachment;filename=\" . $code . \".pdf\");\necho $bot-\u003egetDpdModule()-\u003egetLabelPdf($code);\ndie;\n\n\n// Pickware ERP Plugin\n$bot-\u003egetPickwareModule()-\u003esaveIncomingStock($articleDetailId,$binLocationId,$warehouseId,$incomingStock);\n$bot-\u003egetPickwareModule()-\u003esaveIncomingStock($articleDetailId,$binLocationId,$warehouseId,$incomingStock);\n$bot-\u003egetPickwareModule()-\u003egetStockList();\n$bot-\u003egetPickwareModule()-\u003egetStockListByOrderDetailId();\n$bot-\u003egetPickwareModule()-\u003egetStockListByUserId();\n$bot-\u003egetPickwareModule()-\u003egetStockListByComment();\n$bot-\u003egetPickwareModule()-\u003egetStockListByType();\n\n\n// Plugins\n$bot-\u003egetPluginsModule()-\u003eisPluginActive($technicalName_or_Label);\n$bot-\u003egetPluginsModule()-\u003egetActivePlugins();\n$bot-\u003egetPluginsModule()-\u003egetLocalList();\n\n// Articles\n$bot-\u003egetArticleModule()-\u003edeleteProduct($Detail_id);\n\n```\n\n\n### Todos\n\n - Add more modules\n\nLicense\n----\n\nGPL-3.0+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferkineren%2Fshopware_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferkineren%2Fshopware_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferkineren%2Fshopware_bot/lists"}