vin-sw/shopware-sdk
A PHP SDK for Shopware 6 APIs, offering object-oriented access to the Admin API (CRUD, Sync, User Config, Notification, Search) plus webhook registration, authentication, and receiver helpers. Compatible with Shopware 6.5+ on SDK 2.x.
SyncService (feeds, price/stock pushes), NotificationService (admin-facing alerts from our app), UserConfigService (per-admin preferences), AdminSearchService (cross-entity search UI), and webhook-driven real-time sync (order state, inventory).shopware/api-client (OpenAPI-generated) without touching product code.Adopt if:
Criteria, EqualsFilter, RepositoryFactory::create(...)) so the code reads like Shopware core and your team's Shopware knowledge transfers directly.Look elsewhere if:
shopware/api-client, or message-queue batching. (Release notes include a memory-exhaustion fix, which is a signal to load-test, not a disqualifier.)examples/ + a companion AppExample repo. That's workable for a senior PHP dev, thin for a mixed-seniority team.Gate before adoption (PM-owned checklist):
src/Data/Entity against our integration surface, plus custom-entity support.ShopwareGateway interface so the SDK is an implementation detail, not a leaky abstraction across the codebase.composer.json.For executives: We need to connect our Laravel platform to Shopware 6 for orders, catalogue, inventory and admin notifications. Building that connector ourselves means writing and then forever maintaining auth, query-building, bulk sync and webhook security — realistically several engineer-weeks plus ongoing upkeep for zero product differentiation. This MIT-licensed SDK packages that plumbing and is actively maintained (release cadence through 2026, tracked compatibility with Shopware 6.5/6.6). It is free and permissively licensed, so the financial exposure is engineering time, not licence cost. The real risk is concentration: it is a small, single-maintainer open-source project with minimal public adoption, so I am recommending a short validation spike and wrapping it behind our own interface — that caps the downside at a few days of work if we ever need to switch to Shopware's official client. Net: faster path to the integration roadmap, low switching cost, no vendor lock-in.
For engineering: vin-sw/shopware-sdk is a PHP 7.4+ / ext-curl SDK over the Shopware 6 Admin API, versioned to schema (2.x → 6.5+, 1.x → 6.4). The pitch is that it mirrors Shopware's own developer model: RepositoryFactory::create(ProductDefinition::ENTITY_NAME) + Criteria + filters + a Context (shop URL + access token), with entity/collection classes generated per DAL entity. Methods cover get/search/searchIds/create/update/delete/syncDeleted/createVersion/mergeVersion/deleteVersion/clone/schema, plus aggregate and partial loading via addFields. Auth supports password, client-credentials and refresh-token grants; tokens are designed to be persisted so we are not minting one per request. Concrete services exist for Info, Media, User, StateMachine, Sync, Notification, UserConfig and AdminSearch, with an AdminActionService fallback for endpoints without a concrete class. The part we cannot easily replicate cheaply is the App surface: webhook registration/authentication helpers and the action-button Response classes (EmptyResponse, ReloadDataResponse, OpenNewTabResponse, NotificationResponse, OpenModalResponse) ported from Shopware core — that is the strongest reason to take the dependency. Caveats to plan around: single maintainer with no dependents (pin the version, keep a fork path, and hide it behind our own gateway interface); README-and-examples-only docs; no Laravel service provider here (the linked adapter is third-party — we would register the client/context ourselves); and Admin API only, so Store API / storefront work is a separate decision. Compare against Shopware's official OpenAPI-generated shopware/api-client during the spike — if that covers webhooks and the DAL ergonomics we care about, it wins on vendor risk; if not, this SDK is the pragmatic choice.
How can I help you explore Laravel packages today?