Previous versions of the PHP SDK

View documentation for previous versions of the PHP SDK

PHP v1 SDK

Warning icon

This SDK was deprecated on 1 September 2022.

Migrate to the PHP v2 SDKExternal link icon

Features

Authentication

The API client automatically authenticates using OAuth 2.0 and stores the retrieved token in any PSR-6External link icon or PSR-16External link icon compatible cache adapter.

Logging

The API client can be configured to log detailed information of each request to any PSR-3External link icon compatible logging provider.

The correlation id of each request sent by the API gets extracted and logged as context information. Information about API deprecation is logged with severity warning.

Asynchronous requests

The PHP v1 SDK uses the guzzle HTTP clientExternal link icon for executing requests which opens the possibility of executing requests in batches as well as asynchronously.

Localization

The PHP v1 SDK provides convenient formatting of currencies using the PHP intlExternal link icon extension. For localization of a project, fallback rules for localization can be configured.

License

The PHP v1 SDK is licensed under the permissive MIT LicenseExternal link icon.