PHPackages                             sherold-dev/zugferd-php - 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. sherold-dev/zugferd-php

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

sherold-dev/zugferd-php
=======================

ZUGFeRD PHP SDK - Convert PHP Objects to XML and back.

v0.4-alpha(6y ago)05MITPHPPHP ^7.2

Since Jun 28Pushed 6y agoCompare

[ Source](https://github.com/sherold-dev/zugferd-php)[ Packagist](https://packagist.org/packages/sherold-dev/zugferd-php)[ RSS](/packages/sherold-dev-zugferd-php/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

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

[](#zugferd-php)

ZUGFeRD PHP SDK - 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 easybill/zugferd-php
```

Usage
-----

[](#usage)

Convert XML to PHP Objects:

```
use Easybill\ZUGFeRD\Reader;

$document = Reader::create()->getDocument('zugferd-file.xml');
echo $document->getHeader()->getId(); // Get invoice No.
```

Convert PHP Objects to XML:

```
use Easybill\ZUGFeRD\Builder;
use Easybill\ZUGFeRD\Model\Document;

$doc = new Document(Document::TYPE_COMFORT);
$doc->getHeader()->setId('RE1337'); // Set invoice No.

$xml = Builder::create()->getXML($doc);
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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.7% of commits — single point of failure

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 ~244 days

Total

5

Last Release

2268d ago

PHP version history (2 changes)v0.1-alphaPHP &gt;=5.4.0

v0.2-alphaPHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/b78a0e703d675e952db07b6e75015d53dd9d5890c3ae6255118a6356734cb777?d=identicon)[sherold](/maintainers/sherold)

---

Top Contributors

[![T-R3x](https://avatars.githubusercontent.com/u/4959676?v=4)](https://github.com/T-R3x "T-R3x (69 commits)")[![PATROMO](https://avatars.githubusercontent.com/u/318564?v=4)](https://github.com/PATROMO "PATROMO (26 commits)")[![MaximilianKresse](https://avatars.githubusercontent.com/u/545671?v=4)](https://github.com/MaximilianKresse "MaximilianKresse (5 commits)")[![sherold-dev](https://avatars.githubusercontent.com/u/1692731?v=4)](https://github.com/sherold-dev "sherold-dev (4 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

ZUGFeRD

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sherold-dev-zugferd-php/health.svg)

```
[![Health](https://phpackages.com/badges/sherold-dev-zugferd-php/health.svg)](https://phpackages.com/packages/sherold-dev-zugferd-php)
```

###  Alternatives

[jms/serializer-bundle

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

1.8k89.3M627](/packages/jms-serializer-bundle)[horstoeko/zugferd

A library for creating and reading european electronic invoices

4044.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)[goetas-webservices/xsd2php-runtime

Convert XSD (XML Schema) definitions into PHP classes

4910.9M36](/packages/goetas-webservices-xsd2php-runtime)[easybill/e-invoicing

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

12122.5k](/packages/easybill-e-invoicing)[liip/serializer-jms-adapter

Adapter to use liip/serializer in place of jms/serializer.

10273.5k](/packages/liip-serializer-jms-adapter)

PHPackages © 2026

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