Download the PHP package kb-data-solutions/php-sdk without Composer
On this page you can find all versions of the php package kb-data-solutions/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kb-data-solutions/php-sdk
More information about kb-data-solutions/php-sdk
Files in kb-data-solutions/php-sdk
Package php-sdk
Short Description PHP SDK for the KB Data Solutions Commerce Integration API
License Apache-2.0
Informations about the package php-sdk
KB Data Solutions PHP SDK
PHP SDK for the KB Data Solutions Commerce Integration API.
Installation
Requirements
- PHP 8.3 or higher
- A PSR-18 HTTP client and PSR-17 factories available in your dependency tree (most frameworks already provide these; if none is found, install one, e.g.
composer require guzzlehttp/guzzle)
Quick Start
Authentication
The SDK authenticates using OAuth2 Client Credentials. Provide the clientId and clientSecret issued for your integration; the SDK handles token acquisition and renewal automatically.
Usage
Debtors
Invoices
Error Handling
All SDK exceptions implement KBDataSolutions\Sdk\Exception\SdkException, so you can catch every SDK-originated failure with a single type:
Idempotency
Write operations accept an optional idempotency key as their second argument; the SDK generates a random one when omitted:
Polling
Submissions are processed asynchronously: a create call returns immediately with a pending status. Use waitUntilProcessed() instead of polling find() manually:
It throws KBDataSolutions\Sdk\Invoice\InvoicePollingTimeoutException if the invoice has not reached a terminal status after the configured number of attempts; the exception carries the last known Invoice and the number of attempts made.
Pagination
The API currently exposes no list endpoints; there is nothing to paginate.
Supported PHP Versions
PHP 8.3 and 8.4 are tested in CI.
Versioning
This package follows Semantic Versioning.
Contributing
Issues and pull requests are welcome — see SECURITY.md instead of opening a public issue.
License
Apache-2.0. See LICENSE.
All versions of php-sdk with dependencies
psr/http-client Version ^1.0
psr/http-factory Version ^1.1
psr/http-message Version ^2.0
php-http/discovery Version ^1.20