PHPackages                             invoicetronic/php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. invoicetronic/php-sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

invoicetronic/php-sdk
=====================

The \[Invoicetronic API\]\[2\] is a RESTful service that allows you to send and receive invoices through the Italian \[Servizio di Interscambio (SDI)\]\[1\], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see \[Invoicetronic website\]\[2\] ## Before you start For the full integration guide, tutorials, SDKs and quickstarts, see the \*\*\[Documentation\](https://invoicetronic.com/en/docs/)\*\*. A few cross-cutting topics worth knowing before integrating: - \*\*\[Prerequisites\](https://invoicetronic.com/en/docs/prerequisites/)\*\* — what you need to start in Sandbox and what's required to move to production. - \*\*\[API Keys\](https://invoicetronic.com/en/docs/apikeys/)\*\* — how `ik\_live\_` and `ik\_test\_` keys select the environment. - \*\*\[Sandbox\](https://invoicetronic.com/en/docs/sandbox/)\*\* — free test environment that mirrors the live workflow, with no credits consumed. - \*\*\[Rate Limiting\](https://invoicetronic.com/en/docs/ratelimiting/)\*\* — per-second, per-minute and per-day limits; how to handle `429 Too Many Requests`. - \*\*\[Pagination\](https://invoicetronic.com/en/docs/pagination/)\*\* — `page` and `page\_size` parameters and the `Invoicetronic-Total-Count` response header. - \*\*\[CORS\](https://invoicetronic.com/en/docs/cors/)\*\* — calling the API from the browser; allowed origins are configured per key. - \*\*\[Webhooks\](https://invoicetronic.com/en/docs/webhooks/)\*\* — real-time event notifications with HMAC-SHA256 signature validation. - \*\*\[Localization\](https://invoicetronic.com/en/docs/accept-language/)\*\* — use the `Accept-Language` header to receive error messages in Italian, English or German. \[1\]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ \[2\]: https://invoicetronic.com/

v1.9.0(1mo ago)0115MITPHPPHP ^8.1

Since Jul 18Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/invoicetronic/php-sdk)[ Packagist](https://packagist.org/packages/invoicetronic/php-sdk)[ Docs](https://invoicetronic.com)[ RSS](/packages/invoicetronic-php-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (16)Versions (19)Used By (0)

PHP SDK for the Invoicetronic API
=================================

[](#php-sdk-for-the-invoicetronic-api)

The [Invoicetronic API](https://invoicetronic.com/) is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)](https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/), or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools.

For more information, see [Invoicetronic website](https://invoicetronic.com/)

Before you start
----------------

[](#before-you-start)

For the full integration guide, tutorials, SDKs and quickstarts, see the **[Documentation](https://invoicetronic.com/en/docs/)**. A few cross-cutting topics worth knowing before integrating:

- **[Prerequisites](https://invoicetronic.com/en/docs/prerequisites/)** — what you need to start in Sandbox and what's required to move to production.
- **[API Keys](https://invoicetronic.com/en/docs/apikeys/)** — how `ik_live_` and `ik_test_` keys select the environment.
- **[Sandbox](https://invoicetronic.com/en/docs/sandbox/)** — free test environment that mirrors the live workflow, with no credits consumed.
- **[Rate Limiting](https://invoicetronic.com/en/docs/ratelimiting/)** — per-second, per-minute and per-day limits; how to handle `429 Too Many Requests`.
- **[Pagination](https://invoicetronic.com/en/docs/pagination/)** — `page` and `page_size` parameters and the `Invoicetronic-Total-Count` response header.
- **[CORS](https://invoicetronic.com/en/docs/cors/)** — calling the API from the browser; allowed origins are configured per key.
- **[Webhooks](https://invoicetronic.com/en/docs/webhooks/)** — real-time event notifications with HMAC-SHA256 signature validation.
- **[Localization](https://invoicetronic.com/en/docs/accept-language/)** — use the `Accept-Language` header to receive error messages in Italian, English or German.

For more information, please visit .

Installation &amp; Usage
------------------------

[](#installation--usage)

### Requirements

[](#requirements)

PHP 7.4 and later. Should also work with PHP 8.0.

### Composer

[](#composer)

To install the bindings via [Composer](https://getcomposer.org/), run the following command:

```
$ composer require invoicetronic/php-sdk
```

Then run `composer install`

### Manual Installation

[](#manual-installation)

There are three options:

- Download the latest release of the PHP SDK [Phar Archive](https://github.com/invoicetronic/php-sdk/releases) and simply include it in your project.

```
require_once('./invoicetronic-sdk.phar');
```

- Download our SDK using [PHP-download](https://php-download.com/package/invoicetronic/php-sdk) and simply include it in your project.
- Create your own custom autoloader and download all the dependencies (transitive included) as explained [here](https://ehikioya.com/how-to-install-php-packages-without-composer/).

```

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```php
