PHPackages                             atgp/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. [Payment Processing](/categories/payments)
4. /
5. atgp/factur-x

ActiveLibrary[Payment Processing](/categories/payments)

atgp/factur-x
=============

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

v3.2.0(2mo ago)138825.5k—6.3%28[1 PRs](https://github.com/atgp/factur-x/pulls)3MITPHPPHP &gt;=7.4CI failing

Since Jan 9Pushed 2mo ago14 watchersCompare

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

READMEChangelog (10)Dependencies (11)Versions (20)Used By (3)

PHP Factur-X library
--------------------

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

Factur-X is a Franco-German e-invoicing standard which complies with the European e-invoicing standard [EN 16931](https://ec.europa.eu/digital-building-blocks/wikis/display/DIGITAL/Obtaining+a+copy+of+the+European+standard+on+eInvoicing). The Factur-X specifications are available on the [FNFE-MPE](http://fnfe-mpe.org/factur-x/) website in English and French. The Factur-X standard is also called [ZUGFeRD](https://www.ferd-net.de/download-zugferd) in Germany.

This library enable you to manage your Factur-X PDF invoices files :

- **Generate Factur-X PDF invoice** from regular PDF invoice and Factur-X XML file
    - Using [setasign\\Fpdi](https://github.com/Setasign/FPDI)
- **Extract Factur-X XML** from Factur-X PDF invoice
    - Using [Smalot\\PdfParser](https://github.com/smalot/pdfparser)
- **Validate Factur-X XML** against the official Factur-X XML Schema Definition
    - Using PHP native libxml functions

Table of contents:
------------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
- [Changelog](#changelog)
- [Contributing](CONTRIBUTING.md)

Requirements
------------

[](#requirements)

- PHP 7.4+
- Composer
- [FPDI](https://github.com/Setasign/FPDI) (MIT License)
- [Smalot](https://github.com/smalot/pdfparser) (LGPL License)

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

[](#installation)

#### Install with Composer

[](#install-with-composer)

```
composer require atgp/factur-x
```

Usage
-----

[](#usage)

You can see the code from test page from "tests" directory, also here some simple examples of implementation :

```
