Download the PHP package shoper/sdk without Composer
On this page you can find all versions of the php package shoper/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sdk
Shoper PHP SDK
Official PHP SDK for the Shoper REST API. Generated from OpenAPI 3.1 (Fern), with hand-written ergonomic helpers (ShoperClient, OAuthManager, WebhookVerifier, Paginator, BulkRequestBuilder, RateLimitHandler).
- PHP 8.1+
- PSR-18 HTTP client (any compliant implementation, e.g. Guzzle 7 — auto-discovered via
php-http/discoveryor injected via constructor) - 74 typed sub-clients covering the full REST surface
Install
Quick start
Authenticate (admin Basic Auth → token)
Authenticate (OAuth authorization-code, AppStore apps)
Both calls store the new access token on the client automatically. An existing token can also be injected directly: new ShoperClient($url, $accessToken) or $client->setToken($accessToken).
List products
Iterate every page
Verify a webhook
verifyFromGlobals() reads the X-Webhook-Id, X-Shop-License and X-Webhook-SHA1 headers; verifyFromPsr7($request) does the same for a PSR-7 request. See examples/03-webhook-verification.php.
All 74 sub-clients
Every public REST resource is a typed getter on ShoperClient:
For brand-new resources Fern adds before this README is regenerated, the magic __call fallback still works.
Features
- OAuth 2.0 authorization_code + refresh_token flows
- Admin Basic authentication
- Type-safe response DTOs (generated from OpenAPI spec)
Paginator— iterate through all pagesBulkRequestBuilder— batch up to 25 operations in one callRateLimitHandler— automatic retry on 429 withRetry-AfterhonorWebhookVerifier— HMAC signature verification
Examples
See examples/ directory for end-to-end scenarios:
01-oauth-flow.php— full AppStore OAuth flow02-basic-crud.php— list / create / update / delete03-webhook-verification.php— receive and verify webhooks04-pagination.php— iterate all pages05-bulk-requests.php— batch updates06-rate-limit.php— retry with backoff07-error-handling.php— typed exceptions
Reference
- API docs: https://developers.shoper.pl
- Issue tracker / source: https://github.com/dreamcommerce/shoper-sdk-php
- Packagist: https://packagist.org/packages/shoper/sdk
Support
Bug reports and feature requests: contact Shoper support. This repository does not accept public issues or direct PRs to auto-generated code.
Community PRs are welcome to:
src/ShoperClient.phpand other root helpers (src/*.php)README.md,examples/,tests/Helpers/CHANGELOG.md,.github/
Paths src/Rest/** are auto-generated from the OpenAPI spec and cannot be modified directly — PRs touching them will be auto-closed.
License
MIT — see LICENSE.
All versions of sdk with dependencies
ext-json Version *
psr/http-client Version ^1.0
psr/http-client-implementation Version ^1.0
psr/http-factory Version ^1.0
psr/http-factory-implementation Version ^1.0
psr/http-message Version ^1.1 || ^2.0
php-http/discovery Version ^1.0
php-http/multipart-stream-builder Version ^1.0