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

ActiveLibrary

code4business/zugferd-php
=========================

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

0.1.3(6y ago)112MITPHPPHP ^7.2

Since Feb 13Pushed 6y agoCompare

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

READMEChangelogDependencies (2)Versions (5)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 code4business/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

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.3% 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 ~2 days

Total

4

Last Release

2279d ago

### Community

Maintainers

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

---

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 (23 commits)")[![domeglic](https://avatars.githubusercontent.com/u/8225737?v=4)](https://github.com/domeglic "domeglic (8 commits)")[![MaximilianKresse](https://avatars.githubusercontent.com/u/545671?v=4)](https://github.com/MaximilianKresse "MaximilianKresse (6 commits)")[![upsite4k](https://avatars.githubusercontent.com/u/28684500?v=4)](https://github.com/upsite4k "upsite4k (3 commits)")

---

Tags

ZUGFeRD

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[horstoeko/zugferd

A library for creating and reading european electronic invoices

4044.3M18](/packages/horstoeko-zugferd)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[easybill/zugferd-php

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

99295.7k8](/packages/easybill-zugferd-php)[atgp/factur-x

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

138825.5k3](/packages/atgp-factur-x)[sulu/article-bundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system

66409.6k2](/packages/sulu-article-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)

PHPackages © 2026

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