Peppol API
PHP

PHP SDK

for Peppol E-Invoicing

The official PHP SDK for e-invoice.be. Modern PHP 8+ support with Composer integration for Laravel, Symfony, and any PHP application.

$composer require e-invoice/e-invoice-api

What is e-invoice.be?

e-invoice.be is a recognized Peppol Access Point and SMP operating under the Belgian Peppol Authority (BOSA). We enable businesses worldwide to send and receive electronic invoices via the Peppol network.

Our API lets you send invoices from JSON, upload pre-generated UBL XML, create invoices from PDF files, or integrate via our reseller programme. The PHP SDK makes integrating with our API seamless for any PHP application.

Instant Delivery

E-invoices delivered instantly via Peppol

Peppol Compliant

Automatic UBL BIS Billing 3.0 conversion

Real-time Validation

Validate invoices before sending

Quick Start

Get up and running in minutes with our PHP SDK.

1. Install the SDK

composer require e-invoice/e-invoice-api

2. Usage

<?php

use EInvoiceAPI\Client;

$client = new Client(apiKey: getenv('E_INVOICE_API_KEY'));

$documentResponse = $client->documents->create();

echo $documentResponse->id;

Features

PHP 8+ Support

Modern PHP with constructor property promotion, named arguments, and union types.

PSR-4 Autoloading

Follows PHP-FIG standards for autoloading. Works seamlessly with Composer and any framework.

Guzzle HTTP Client

Uses Guzzle for reliable HTTP requests with connection pooling, retries, and timeout handling.

Auto-retry with Backoff

Automatic retry logic with exponential backoff for transient failures. Configurable retry strategies.

Exception Handling

Typed exceptions for different error scenarios. Easily catch and handle validation, auth, and network errors.

Framework Agnostic

Works with Laravel, Symfony, Slim, or plain PHP. No framework dependencies required.

Start integrating today

Get your API key and start sending e-invoices in minutes. Our documentation has everything you need to get started.

Switch to e-invoicing, keep your workflow