PHP SDK
Official SUQO SDK for PHP.
PHP SDK for the SUQO subscription management platform. Integrate products, subscriptions, customers and webhooks into your own app without hand-writing raw API calls.
Source: github.com/suqo-ai/suqo-sdk-php · Packagist: suqo/sdk-php
Server-side only. This SDK uses your full-access API key and must never be exposed to a browser.
Install
composer require suqo/sdk-phpEverything is namespaced under Suqo\, PSR-4 from src/.
What's included
- Named arguments everywhere — every optional parameter is passed by name, so a future version can add one without breaking a call site.
- Money and dates stay strings —
price,vat,totalSubscribersand every timestamp arestringend to end, never parsed into a float inside the SDK. - Tolerant reads — a field of an unexpected type reads as absent rather than failing the whole response, and
toArray()always returns the decoded payload with the server's own keys. - One error hierarchy — every failure derives from
Suqo\Exception\SuqoError, configuration faults included. - Automatic retries on safe (read) requests, with sane timeout defaults. Writes are never retried automatically.
- Bring your own HTTP client — cURL by default, any PSR-18 client if you prefer.
Next
- Quickstart — install the package and make your first real call.
- Configure the client — API keys, environment inference, timeouts and retries.
- Manage subscriptions — the lifecycle the SDK is mostly used for.
- Handle webhooks — verifying inbound deliveries.
- Handle errors — the
SuqoErrorhierarchy, and what is retried.