PHPackages                             silarhi/zugferd-factur-x - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. silarhi/zugferd-factur-x

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

silarhi/zugferd-factur-x
========================

XML generator for ZUGFeRD / Factur-X / XRechnung written in PHP. Convert PHP Objects to XML and back.

2.0.0(2y ago)13.4k↓23.1%MITXSLTPHP &gt;=8.0

Since Feb 8Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/silarhi/zugferd-factur-x)[ Packagist](https://packagist.org/packages/silarhi/zugferd-factur-x)[ RSS](/packages/silarhi-zugferd-factur-x/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (13)Used By (0)

ZUGFeRD PHP
===========

[](#zugferd-php)

[![Build Status](https://github.com/silarhi/zugferd-factur-x/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/silarhi/zugferd-factur-x/actions/workflows/continuous-integration.yml/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/bbf47f22f8c99c2296e90d4328ab3eb0ad6ce644bd40ccfd71547d7a43ac20a5/68747470733a2f2f706f7365722e707567782e6f72672f73696c617268692f7a7567666572642d6661637475722d782f762f737461626c65)](https://packagist.org/packages/silarhi/zugferd-factur-x)[![Total Downloads](https://camo.githubusercontent.com/f60188f54418e1d659ea0be80d07ffca58cb4438dae30749dd674b2c056be8cd/68747470733a2f2f706f7365722e707567782e6f72672f73696c617268692f7a7567666572642d6661637475722d782f646f776e6c6f616473)](https://packagist.org/packages/silarhi/zugferd-factur-x)[![License](https://camo.githubusercontent.com/8fa1a6fc3c393c2aa1476f1e86ae6e9b4ebb0088b6eeb6de11b776448305620c/68747470733a2f2f706f7365722e707567782e6f72672f73696c617268692f7a7567666572642d6661637475722d782f6c6963656e7365)](https://packagist.org/packages/silarhi/zugferd-factur-x)

XML generator for ZUGFeRD / Factur-X / XRechnung written in PHP. Convert PHP Objects to XML and back.

[Look @ Tests for more details](tests)

Installation
------------

[](#installation)

The recommended way of installing this library is using [Composer](http://getcomposer.org/).

Add this repository to your composer information using the following command

```
composer require silarhi/zugferd-factur-x
```

Usage ZUGFeRD v2.1
------------------

[](#usage-zugferd-v21)

Convert XML to PHP Objects:

```
use src\Reader;

$xml = file_get_contents('factur-x.xml');
$obj = Reader::create()->transform($xml);
```

Convert PHP Objects to XML:

```
use src\Builder;

$obj = ...;

$xml = Builder::create()->transform($obj);
echo $xml; // Zugferd XML.
```

Contributing
------------

[](#contributing)

Please feel free to send bug reports and pull requests.

License
-------

[](#license)

Published as open source under the terms of [MIT License](http://opensource.org/licenses/MIT).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance58

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

829d ago

Major Versions

1.0.0 → 2.0.02024-02-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5052984?v=4)[Guillaume Sainthillier](/maintainers/guillaume-sainthillier)[@guillaume-sainthillier](https://github.com/guillaume-sainthillier)

---

Top Contributors

[![T-R3x](https://avatars.githubusercontent.com/u/4959676?v=4)](https://github.com/T-R3x "T-R3x (69 commits)")[![guillaume-sainthillier](https://avatars.githubusercontent.com/u/5052984?v=4)](https://github.com/guillaume-sainthillier "guillaume-sainthillier (55 commits)")[![PATROMO](https://avatars.githubusercontent.com/u/318564?v=4)](https://github.com/PATROMO "PATROMO (47 commits)")[![MaximilianKresse](https://avatars.githubusercontent.com/u/545671?v=4)](https://github.com/MaximilianKresse "MaximilianKresse (5 commits)")[![mxsxs2](https://avatars.githubusercontent.com/u/13612429?v=4)](https://github.com/mxsxs2 "mxsxs2 (4 commits)")[![bitbirddev](https://avatars.githubusercontent.com/u/15128942?v=4)](https://github.com/bitbirddev "bitbirddev (3 commits)")[![BolZer](https://avatars.githubusercontent.com/u/19969518?v=4)](https://github.com/BolZer "BolZer (2 commits)")[![ChrisB9](https://avatars.githubusercontent.com/u/7099583?v=4)](https://github.com/ChrisB9 "ChrisB9 (2 commits)")[![olleharstedt](https://avatars.githubusercontent.com/u/607341?v=4)](https://github.com/olleharstedt "olleharstedt (1 commits)")[![derklaro](https://avatars.githubusercontent.com/u/40468651?v=4)](https://github.com/derklaro "derklaro (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")[![blackgwe](https://avatars.githubusercontent.com/u/6592155?v=4)](https://github.com/blackgwe "blackgwe (1 commits)")[![upsite4k](https://avatars.githubusercontent.com/u/28684500?v=4)](https://github.com/upsite4k "upsite4k (1 commits)")

---

Tags

factur-xxrechnungzugferdZUGFeRDfactur-xxrechnung

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/silarhi-zugferd-factur-x/health.svg)

```
[![Health](https://phpackages.com/badges/silarhi-zugferd-factur-x/health.svg)](https://phpackages.com/packages/silarhi-zugferd-factur-x)
```

###  Alternatives

[horstoeko/zugferd

A library for creating and reading european electronic invoices

4174.3M18](/packages/horstoeko-zugferd)[easybill/zugferd-php

ZUGFeRD PHP SDK (Factur-X, XRechnung) - Convert PHP Objects to XML and back.

99295.7k8](/packages/easybill-zugferd-php)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[easybill/e-invoicing

A package to read and create EN16931 e-invoices or CIUS like: XRechnung, ZUGFeRD etc.

12122.5k](/packages/easybill-e-invoicing)[goetas-webservices/xsd2php-runtime

Convert XSD (XML Schema) definitions into PHP classes

4910.9M36](/packages/goetas-webservices-xsd2php-runtime)[atgp/factur-x

PHP library to manage your Factur-X / ZUGFeRD 2.0 PDF invoices files

138825.5k3](/packages/atgp-factur-x)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
