Search by

horstoeko / zugferd

horstoeko

A library for creating and reading european electronic invoices

Package info

github.com/horstoeko/zugferd

Type:package

pkg:composer/horstoeko/zugferd

Fund package maintenance!

paypal.me/horstoeko

Statistics

Installs: 7 413 090

Dependents: 15

Suggesters: 2

Stars: 434

Open Issues: 0

v1.0.132 2026-08-30 14:11 UTC

README

ZUGFeRD/XRechnung/Factur-X

Status

Latest Stable Version PHP version License

Continuous Integration Release Status

Searching for contributors

Projektstatus und offizieller Nachfolger

Important

horstoeko/zugferd wurde technisch umfassend modernisiert. Die Entwicklungsinfrastruktur, CI- und Release-Workflows, Nightly-Builds, Tests sowie die automatisierten Qualitätsprüfungen mit PHPStan, PHP-CS-Fixer und Rector wurden aktualisiert und vereinheitlicht. Die Bibliothek bleibt für bestehende Projekte verfügbar und wird weiterhin gepflegt.

Diese Modernisierung ändert nichts an der strategischen Ausrichtung: Der offizielle Nachfolger und Schwerpunkt der zukünftigen Weiterentwicklung ist horstoeko/invoicesuite. Für neue Projekte wird ausdrücklich InvoiceSuite empfohlen.

InvoiceSuite bietet eine moderne, erweiterbare Architektur für verschiedene Formate und Syntaxen elektronischer Rechnungen – darunter ZUGFeRD, Factur-X und XRechnung in CII und UBL. Die enthaltene Legacy-Kompatibilität erleichtert die Migration bestehender Anwendungen von horstoeko/zugferd.

Bestehende Anwendungen müssen nicht sofort migriert werden. Bei neuen Implementierungen oder größeren Weiterentwicklungen sollte jedoch InvoiceSuite als Grundlage verwendet werden.

Project status and official successor

Important

horstoeko/zugferd has undergone extensive technical modernization. The development infrastructure, CI and release workflows, nightly builds, tests, and automated quality checks using PHPStan, PHP-CS-Fixer, and Rector have been updated and standardized. The library remains available and maintained for existing projects.

This modernization does not change the strategic direction: The official successor and primary focus of future development is horstoeko/invoicesuite. InvoiceSuite is strongly recommended for all new projects.

InvoiceSuite provides a modern, extensible architecture for different electronic invoice formats and syntaxes, including ZUGFeRD, Factur-X, and XRechnung in both CII and UBL. Its legacy compatibility layer facilitates the migration of existing applications from horstoeko/zugferd.

Existing applications do not need to migrate immediately. However, InvoiceSuite should be used as the foundation for new implementations and major future developments.

Table of Contents

License

The code in this project is provided under the MIT license.

Overview

With horstoeko/zugferd you can read and write xml files containing electronic invoice data in the Minimum-, Basic-, EN16931-, Extended- and XRechnung Profile. In addition, it is possible to attach the XML data to an existing PDF file, which was created from an ERP system, for example. If both an XML file (or XML string) and a PDF file (or a PDF in the form of a string) exist, then a compliant PDF file with attachment can be created using the ZugferdDocumentPdfMerger class.

The advantage of this library is that you don't have to worry about whether a particular XML element exists in a desired profile - you can use the same program code for all supported profiles.

Supported profiles

  • EN16931 Minimum
  • EN16931 Basic
  • EN16931 Basic WL
  • EN16931 Comfort
  • EN16931 Extended
  • EN16931 XRechnung 1.x
  • EN16931 XRechnung 2.x
  • EN16931 XRechnung 3.x

Important

This package provides only support for CII-Syntax - not UBL-Syntax

Further information

Related projects

Dependencies

This package makes use of

Resources

Guide

For detailed explanation you may have a look in the examples of this package, the documentation attached to every release or our wiki.

The following parts are documentated in our Wiki: