SUQODocs
User GuideAPI ReferenceSDKs

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-php

Everything 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 stringsprice, vat, totalSubscribers and every timestamp are string end 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

On this page