PHPackages                             tiime/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. [File &amp; Storage](/categories/file-storage)
4. /
5. tiime/factur-x

ActiveLibrary[File &amp; Storage](/categories/file-storage)

tiime/factur-x
==============

PHP library to manage your Factur-X (PDF invoices files)

0.3.0(7mo ago)9238.2k↓30.8%2[1 PRs](https://github.com/Tiime-Software/factur-x/pulls)MITXSLTPHP &gt;=8.3CI passing

Since Aug 17Pushed 5mo agoCompare

[ Source](https://github.com/Tiime-Software/factur-x)[ Packagist](https://packagist.org/packages/tiime/factur-x)[ RSS](/packages/tiime-factur-x/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (8)Used By (0)

Factur-X PHP Library
====================

[](#factur-x-php-library)

Install with Composer
---------------------

[](#install-with-composer)

```
composer require tiime/factur-x
```

Usage
-----

[](#usage)

### Generate Factur-X

[](#generate-factur-x)

Create a Factur-X compliant PDF document by merging provided PDF content with XML data and optionally adding a logo.

```
use Tiime\FacturX\Writer;

$writer = new Writer();
$facturxContent = $writer->generate(
    pdfContent: $pdfContent,
    xmlContent: $xml,
    addLogo: true
);

file_put_contents('generated_facturx.pdf', $facturxContent);
```

### Extract XML from Factur-X

[](#extract-xml-from-factur-x)

Extract XML data from a Factur-X compliance PDF document.

```
use Tiime\FacturX\Reader;

$extractedXml = (new Reader())->extractXML($writer);
```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance68

Regular maintenance activity

Popularity40

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.6% 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 ~394 days

Total

3

Last Release

217d ago

PHP version history (2 changes)0.1.0PHP ^8.1

0.2.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/714c4aeb1b4c0d011806746e5f3f2289b9fde4a35568b343337dd63bffd1367f?d=identicon)[lucas.g](/maintainers/lucas.g)

![](https://www.gravatar.com/avatar/365205cd636a7cb5c66d24e2e17f744af0168fddce56b602859c8ee7a75d93aa?d=identicon)[rflavien](/maintainers/rflavien)

---

Top Contributors

[![Lucas-Gerard](https://avatars.githubusercontent.com/u/22389317?v=4)](https://github.com/Lucas-Gerard "Lucas-Gerard (37 commits)")[![AurelienPillevesse](https://avatars.githubusercontent.com/u/16165438?v=4)](https://github.com/AurelienPillevesse "AurelienPillevesse (15 commits)")[![rflavien](https://avatars.githubusercontent.com/u/5444185?v=4)](https://github.com/rflavien "rflavien (9 commits)")[![qdequippe](https://avatars.githubusercontent.com/u/3193300?v=4)](https://github.com/qdequippe "qdequippe (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![samueld-pdp](https://avatars.githubusercontent.com/u/133663914?v=4)](https://github.com/samueld-pdp "samueld-pdp (2 commits)")

---

Tags

en16931factur-xinvoicephp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[horstoeko/zugferd

A library for creating and reading european electronic invoices

4174.3M18](/packages/horstoeko-zugferd)[atgp/factur-x

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

138825.5k3](/packages/atgp-factur-x)[fof/upload

The file upload extension for the Flarum forum with insane intelligence.

188171.7k15](/packages/fof-upload)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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