Kitus PHP SDK
The PHP SDK gives the same compliance as WooCommerce and PrestaShop stores to any PHP software: a homemade tool, another CMS, a business application. It does not replace your invoicing or your business logic: it sits between your code and the Kitus API.
The package
The SDK is published under the name kitus/kitus-php. It relies on the Kitus JSON API, and prepares your data — client verification, e-invoice, transmission — without writing any low-level code.
What it brings
- PHP 8.1 or higher, with no framework dependency;
- a HTTP client of your choice: any PSR-18 client — Guzzle, Symfony HttpClient, or your own transport;
- typed responses: statuses, VIES consultation numbers and
finalindicators, cleanly accessible; - webhook signature verification: the
X-Kitus-Timestamp,X-Kitus-SignatureandX-Kitus-Eventheaders signed with HMAC-SHA256; - test helpers: a fake transport to test your integration without any real sending;
- code and documentation in English, with examples that match the execution.
The environments
The SDK relies on the Kitus API, which exposes the same URL for both environments:
- sandbox:
test_…token, no real call, reserved numbers to simulate each case; - live:
live_…token, real data.
The environment comes from the token, not the URL. See the REST API page for the full reference.
Where to start
Install the package with Composer (composer require kitus/kitus-php), choose the environment of your tokens — test_… for the sandbox, live_… for production — then call the verifications and invoice creation from your code. The sandbox makes no real call: test all cases, refused invoices included, before switching to live. Your code keeps the VAT rates, the amounts and the way you sell; the SDK prepares the data, the API sends it — you do not write any low-level HTTP code.
And the API?
The PHP SDK is just a comfort layer over the REST API. For any language, the REST API does the same job in JSON.