---
title: "PHP libraries for ZUGFeRD and XRechnung compared · Quittio"
description: "Which PHP library for e-invoices fits your project? horstoeko/zugferd, easybill, josemmo/einvoicing, num-num/ubl-invoice, atgp/factur-x and Quittio compared."
canonical_url: "https://quittio.dev/en/guides/php-e-invoicing-libraries-compared"
last_updated: 2026-11-13
locale: en
meta:
  "og:description": "Which PHP library for e-invoices fits your project? horstoeko/zugferd, easybill, josemmo/einvoicing, num-num/ubl-invoice, atgp/factur-x and Quittio compared."
  "og:image": "https://quittio.dev/og/ratgeber-vergleich-en.jpg"
  "og:image:alt": "PHP libraries for e-invoices compared: horstoeko/zugferd, easybill, josemmo/einvoicing, num-num/ubl-invoice, atgp/factur-x and Quittio with licence and PHP version."
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": "PHP libraries for ZUGFeRD and XRechnung compared · Quittio"
  "twitter:image": "https://quittio.dev/og/ratgeber-vergleich-en.jpg"
  "twitter:image:alt": "PHP libraries for e-invoices compared: horstoeko/zugferd, easybill, josemmo/einvoicing, num-num/ubl-invoice, atgp/factur-x and Quittio with licence and PHP version."
---

> Index of every page on this site: [llms.txt](https://quittio.dev/llms.txt)

# PHP libraries for e-invoices: which one fits your project?

Six open-source libraries for ZUGFeRD, XRechnung and Peppol in PHP: what they create, read and validate, which PHP version they need and when each one fits.

**Comparison**13 Nov 2026 · about 7 minutes

**In short**

For plain CII XML (ZUGFeRD, Factur-X, XRechnung CII), **horstoeko/zugferd** is the most widely used library; its author recommends the successor horstoeko/invoicesuite for new projects. For UBL and Peppol there are **num-num/ubl-invoice** and **josemmo/einvoicing**. **atgp/factur-x** combines a finished XML with an existing PDF. **easybill/zugferd-php** maps ZUGFeRD XML to PHP objects and back. **Quittio** creates CII and UBL including the PDF/A-3 from one data model, reads and validates, but is young and needs PHP 8.3. As of 13 Nov 2026.

**Disclosure**

This page belongs to Quittio, one of the libraries compared. The details about the others come from their Packagist entries, GitHub repositories and READMEs, fetched on 13 Nov 2026, and are linked below. “Not described” means: not in the README or docs, not necessarily that it is missing. If something is wrong, [let us know](https://quittio.dev/en/contact).

## What matters

- **Syntax:** ZUGFeRD, Factur-X and XRechnung CII need CII. Peppol BIS Billing 3.0 and XRechnung UBL need UBL.
- **PDF:** a ZUGFeRD invoice is a PDF/A-3 with embedded XML. Some libraries create the PDF themselves, others attach the XML to a PDF your system already produces.
- **Reading:** since 2025 every business in Germany must be able to receive e-invoices. That needs a reader for XML and for the XML embedded in a PDF.
- **Validation:** XSD only checks the structure. The business rules of EN 16931 and XRechnung are Schematron; the official tool is the KoSIT validator (Java).
- **PHP version and framework:** from PHP 7.1 to 8.3; two of the libraries have a Laravel integration.

## Features at a glance

| Library | Creates | Reads | PDF | Validates |
| --- | --- | --- | --- | --- |
| [horstoeko/zugferd](https://github.com/horstoeko/zugferd) | CII: ZUGFeRD/Factur-X MINIMUM to EXTENDED, XRechnung. No UBL | XML and PDF | attaches the XML to an existing PDF | XSD; KoSIT validator (Java, experimental according to the wiki) |
| [easybill/zugferd-php](https://github.com/easybill/zugferd-php) | CII XML from PHP objects (ZUGFeRD 1 and 2) | CII XML into PHP objects | not described | not described (XSD files in the package) |
| [josemmo/einvoicing](https://github.com/josemmo/einvoicing) | UBL according to EN 16931, with presets for Peppol and several national CIUS. CII open on the roadmap | UBL | not described | own business rule checks (`validate()`) |
| [num-num/ubl-invoice](https://github.com/num-num/ubl-invoice) | UBL 2.1, EN 16931, Peppol BIS Billing 3.0 | UBL (since 2.0) | not described | XSD with your own code (example in the docs) |
| [atgp/factur-x](https://github.com/atgp/factur-x) | creates no XML, takes a finished Factur-X XML | extracts the XML from a Factur-X PDF | attaches the XML to an existing PDF | XSD (official Factur-X schemas) |
| [Quittio](https://github.com/Quittio/quittio) | CII and UBL: ZUGFeRD/Factur-X, XRechnung 3.0 (with quittio/country-de), Peppol BIS Billing 3.0 | XML and PDF, into the same data model | creates the PDF/A-3 itself (template) with embedded XML | rules of EN 16931, XRechnung, Peppol and German VAT law in PHP, XSD; KoSIT validator and veraPDF optional |

## Licence, PHP version and adoption

| Package | Licence | PHP | Latest version | Downloads | GitHub stars |
| --- | --- | --- | --- | --- | --- |
| [horstoeko/zugferd](https://packagist.org/packages/horstoeko/zugferd) | MIT | 7.3+ | 1.0.135 of 8 Nov 2026 | about 9.6 million | 447 |
| [easybill/zugferd-php](https://packagist.org/packages/easybill/zugferd-php) | MIT | 8.3+ | 6.0.0 of 30 Mar 2026 | about 401,000 | 102 |
| [josemmo/einvoicing](https://packagist.org/packages/josemmo/einvoicing) | MIT | 7.1+ | 0.3.1 of 9 Jun 2025 | about 553,000 | 179 |
| [num-num/ubl-invoice](https://packagist.org/packages/num-num/ubl-invoice) | MIT | 7.4+ | 2.4.1 of 9 Feb 2026 | about 1.17 million | 143 |
| [atgp/factur-x](https://packagist.org/packages/atgp/factur-x) | MIT | 7.4+ | 3.5.0 of 18 Aug 2026 | about 1.10 million | 153 |
| [quittio/quittio](https://packagist.org/packages/quittio/quittio) | MIT | 8.3+ | 1.0.0 of 27 Oct 2026 | about 440 | 41 |

Downloads: total according to Packagist, rounded. All figures as of 13 Nov 2026.

## When each library fits

### horstoeko/zugferd

The most widely used PHP library for ZUGFeRD and actively maintained. A good choice if you want to write or read CII XML and the PDF already comes from your system. UBL is covered by the separate package horstoeko/zugferdublbridge, Laravel by [horstoeko/zugferd-laravel](https://packagist.org/packages/horstoeko/zugferd-laravel) (latest version 1.0.5 of 15 Mar 2025). According to its README, [horstoeko/invoicesuite](https://packagist.org/packages/horstoeko/invoicesuite) is the official successor and recommended for new projects; it is at version 0.0.41 and needs PHP 8.2.

### easybill/zugferd-php

Maps ZUGFeRD XML (versions 1 and 2) to PHP objects and back, using `jms/serializer`. A fit if you want to work close to the XML and handle calculation and PDF yourself. The same vendor publishes [easybill/e-invoicing](https://packagist.org/packages/easybill/e-invoicing) for reading and creating EN 16931 invoices (version 0.4.0).

### josemmo/einvoicing

Writes and reads UBL according to EN 16931 and checks its own business rules. There are presets for Peppol and for national variants from Austria, Spain, Italy, Romania and the Netherlands. CII is still on the roadmap. Runs on PHP 7.1 and later.

### num-num/ubl-invoice

Object-oriented creation and, since version 2.0, reading of UBL files for EN 16931 and Peppol BIS Billing 3.0. Its README says itself that it does not cover every feature of UBL and Peppol.

### atgp/factur-x

A fit when XML and PDF already exist: the library combines both into a Factur-X/ZUGFeRD file, extracts the XML from such a PDF and checks it against the XSD. You create the XML itself elsewhere.

### Quittio

A fit if you want to create the whole invoice from one data model: calculation according to EN 16931, XML in CII or UBL, PDF/A-3 from a template, validation before sending and reading incoming invoices. The core runs without a framework, and there is a Laravel integration. Limits: Quittio is young (1.0.0 since 27 Oct 2026, few downloads), needs PHP 8.3, and the country packs other than Germany have not been reviewed by a tax adviser yet. More on [E-invoices with PHP](https://quittio.dev/en/php).

## What about Symfony?

Packagist has no Symfony bundle that creates ZUGFeRD or XRechnung invoices (search of 13 Nov 2026). That is no obstacle: all libraries here are framework-agnostic and can be registered as a service. A tested example for Quittio is under [Using it in Symfony](https://quittio.dev/en/php#symfony).

## Frequently asked questions

### **Which PHP library for ZUGFeRD is the most widely used?**

horstoeko/zugferd with about 9.6 million downloads on Packagist (as of 13 Nov 2026). It writes and reads CII; its author recommends the successor horstoeko/invoicesuite for new projects.

### **Which library also creates the PDF?**

horstoeko/zugferd and atgp/factur-x attach the XML to an existing PDF. Quittio creates the PDF/A-3 itself from a template. For the others a PDF is not described.

### **Which library do I use for Peppol?**

Peppol BIS Billing 3.0 is UBL. num-num/ubl-invoice, josemmo/einvoicing and Quittio support it.

### **Is there a Symfony bundle for ZUGFeRD or XRechnung?**

Not on Packagist (as of 13 Nov 2026). The libraries are framework-agnostic; Quittio is registered as a service in a few lines, see [E-invoices with PHP](https://quittio.dev/en/php#symfony).

### **Is this comparison neutral?**

It comes from Quittio, one of the libraries compared. That is why every detail about the others is dated and linked. We are happy to take corrections through the [contact page](https://quittio.dev/en/contact).

**As of: 13 Nov 2026. Not tax or legal advice.**

Sources: [horstoeko/zugferd (GitHub)](https://github.com/horstoeko/zugferd) · [horstoeko/zugferd (Packagist)](https://packagist.org/packages/horstoeko/zugferd) · [horstoeko/zugferd: Validation (wiki)](https://github.com/horstoeko/zugferd/wiki/Validation) · [horstoeko/zugferd-laravel (Packagist)](https://packagist.org/packages/horstoeko/zugferd-laravel) · [horstoeko/invoicesuite (Packagist)](https://packagist.org/packages/horstoeko/invoicesuite) · [easybill/zugferd-php (GitHub)](https://github.com/easybill/zugferd-php) · [easybill/zugferd-php (Packagist)](https://packagist.org/packages/easybill/zugferd-php) · [easybill/e-invoicing (Packagist)](https://packagist.org/packages/easybill/e-invoicing) · [josemmo/einvoicing (GitHub)](https://github.com/josemmo/einvoicing) · [josemmo/einvoicing (Packagist)](https://packagist.org/packages/josemmo/einvoicing) · [num-num/ubl-invoice (GitHub)](https://github.com/num-num/ubl-invoice) · [num-num/ubl-invoice (Packagist)](https://packagist.org/packages/num-num/ubl-invoice) · [atgp/factur-x (GitHub)](https://github.com/atgp/factur-x) · [atgp/factur-x (Packagist)](https://packagist.org/packages/atgp/factur-x) · [Quittio (GitHub)](https://github.com/Quittio/quittio) · [quittio/quittio (Packagist)](https://packagist.org/packages/quittio/quittio)

## Read next

- [**How-to**

  **Create e-invoices with plain PHP, no Laravel needed**

  Quittio runs in any PHP 8.3 project: Symfony, Slim, a Shopware plugin or your own framework.](https://quittio.dev/en/guides/e-invoices-with-php-without-laravel)
- [**How-to**

  **Read incoming e-invoices with PHP**

  Read ZUGFeRD PDFs and XRechnung files in PHP, validate them and take the values into your accounting.](https://quittio.dev/en/guides/read-e-invoices-with-php)
- [**How-to**

  **Validating e-invoices: KoSIT validator and veraPDF in CI**

  The seven validation levels, setting up the official validators and automating them in GitHub Actions.](https://quittio.dev/en/guides/validating-e-invoices-kosit-verapdf)

## Try it yourself.

One Composer command, one script, one validated e-invoice.

[**E-invoices with PHP**](https://quittio.dev/en/php) [**See formats**](https://quittio.dev/en/formats)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://quittio.dev/en#website","@type":"WebSite","description":"E-invoicing for PHP and Laravel: create, validate, read and archive ZUGFeRD, XRechnung and Peppol invoices.","inLanguage":"en","name":"Quittio","url":"https://quittio.dev/en","publisher":{"@id":"https://quittio.dev/#identity"},"translationOfWork":{"@id":"https://quittio.dev/#website"}},{"@id":"https://quittio.dev/en/guides/php-e-invoicing-libraries-compared#webpage","@type":"WebPage","dateModified":"2026-11-13","datePublished":"2026-11-13","description":"Which PHP library for e-invoices fits your project? horstoeko/zugferd, easybill, josemmo/einvoicing, num-num/ubl-invoice, atgp/factur-x and Quittio compared.","name":"PHP libraries for ZUGFeRD and XRechnung compared","url":"https://quittio.dev/en/guides/php-e-invoicing-libraries-compared","breadcrumb":{"@id":"https://quittio.dev/en/guides/php-e-invoicing-libraries-compared#breadcrumb"},"isPartOf":{"@id":"https://quittio.dev/en#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/en/guides/php-e-invoicing-libraries-compared"]}],"primaryImageOfPage":{"@id":"https://quittio.dev/#logo"}},{"@id":"https://quittio.dev/#identity","@type":"Organization","description":"Open-Source-Bibliothek für E-Rechnungen in PHP und Laravel (ZUGFeRD, XRechnung, Peppol) und Quittio Managed.","email":"kontakt@niklasforst.de","legalName":"Niklas Forst – Softwareentwicklung","name":"Quittio","url":"https://quittio.dev","founder":{"@type":"Person","name":"Niklas Forst","url":"https://quittio.dev/ueber"},"logo":{"@id":"https://quittio.dev/#logo"},"sameAs":["https://github.com/Quittio/quittio","https://packagist.org/packages/quittio/quittio"]},{"@id":"https://quittio.dev/en/guides/php-e-invoicing-libraries-compared#article","dateModified":"2026-11-13","datePublished":"2026-11-13","description":"Which PHP library for e-invoices fits your project? horstoeko/zugferd, easybill, josemmo/einvoicing, num-num/ubl-invoice, atgp/factur-x and Quittio compared.","headline":"PHP libraries for e-invoices: which one fits your project?","inLanguage":"en","thumbnailUrl":"https://quittio.dev/og/ratgeber-vergleich-en-16x9.jpg","@type":["Article","TechArticle"],"author":{"@id":"https://quittio.dev/#/schema/person/1"},"image":["https://quittio.dev/og/ratgeber-vergleich-en-16x9.jpg","https://quittio.dev/og/ratgeber-vergleich-en-4x3.jpg","https://quittio.dev/og/ratgeber-vergleich-en-1x1.jpg"],"isPartOf":{"@id":"https://quittio.dev/en/guides/php-e-invoicing-libraries-compared#webpage"},"mainEntityOfPage":{"@id":"https://quittio.dev/en/guides/php-e-invoicing-libraries-compared#webpage"},"publisher":{"@id":"https://quittio.dev/#identity"}},{"@id":"https://quittio.dev/en/guides/php-e-invoicing-libraries-compared#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://quittio.dev/en","position":1},{"@type":"ListItem","name":"Guides","item":"https://quittio.dev/en/guides","position":2},{"@type":"ListItem","name":"Libraries compared","position":3}]},{"@id":"https://quittio.dev/en/guides/php-e-invoicing-libraries-compared#/schema/question/1","@type":"Question","inLanguage":"en","name":"Which PHP library for ZUGFeRD is the most widely used?","acceptedAnswer":{"@type":"Answer","text":"horstoeko/zugferd with about 9.6 million downloads on Packagist (as of 13 Nov 2026). It writes and reads CII; its author recommends the successor horstoeko/invoicesuite for new projects."}},{"@id":"https://quittio.dev/en/guides/php-e-invoicing-libraries-compared#/schema/question/2","@type":"Question","inLanguage":"en","name":"Which library also creates the PDF?","acceptedAnswer":{"@type":"Answer","text":"horstoeko/zugferd and atgp/factur-x attach the XML to an existing PDF. Quittio creates the PDF/A-3 itself from a template. For the others a PDF is not described."}},{"@id":"https://quittio.dev/en/guides/php-e-invoicing-libraries-compared#/schema/question/3","@type":"Question","inLanguage":"en","name":"Which library do I use for Peppol?","acceptedAnswer":{"@type":"Answer","text":"Peppol BIS Billing 3.0 is UBL. num-num/ubl-invoice, josemmo/einvoicing and Quittio support it."}},{"@id":"https://quittio.dev/en/guides/php-e-invoicing-libraries-compared#/schema/question/4","@type":"Question","inLanguage":"en","name":"Is there a Symfony bundle for ZUGFeRD or XRechnung?","acceptedAnswer":{"@type":"Answer","text":"Not on Packagist (as of 13 Nov 2026). The libraries are framework-agnostic; Quittio is registered as a service in a few lines, see E-invoices with PHP."}},{"@id":"https://quittio.dev/en/guides/php-e-invoicing-libraries-compared#/schema/question/5","@type":"Question","inLanguage":"en","name":"Is this comparison neutral?","acceptedAnswer":{"@type":"Answer","text":"It comes from Quittio, one of the libraries compared. That is why every detail about the others is dated and linked. We are happy to take corrections through the contact page."}},{"@id":"https://quittio.dev/#/schema/person/1","@type":"Person","name":"Niklas Forst","url":"https://quittio.dev/ueber"},{"@id":"https://quittio.dev/#logo","@type":"ImageObject","caption":"Quittio","contentUrl":"https://quittio.dev/logo.png","inLanguage":"en","url":"https://quittio.dev/logo.png"}]}
```