Download the PHP package pat-o-dev/factur-x without Composer

On this page you can find all versions of the php package pat-o-dev/factur-x. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package factur-x

pat-o-dev/factur-x

Framework-agnostic PHP library to generate Factur-X invoices for the French e-invoicing reform (norme AFNOR XP Z12-012 / EN 16931), in pure PHP with no Laravel/Symfony dependency. Pairs with pat-o-dev/factur-x-laravel for Laravel projects; a Symfony bundle can reuse this package the same way.

Most existing open-source Factur-X/ZUGFeRD libraries are built and documented primarily for the German ZUGFeRD use case. This package targets the French CIUS (profil EN 16931) described in XP Z12-012 first, with the EXTENDED-CTC-FR profile and the French BR-FR-* business rules planned for a later release.

What it does

  1. Builds the factur-x.xml payload (UN/CEFACT CII D22B syntax, EN 16931 profile) from a plain PHP Invoice object — header, parties, lines, allowances/charges, VAT breakdown and monetary totals.
  2. Turns an existing PDF into a Factur-X hybrid PDF by appending, as a classic PDF incremental update (the same mechanism digital signatures use), the XML as an embedded file (/AF, /Names /EmbeddedFiles) plus the XMP metadata declaring the PDF/A-3 + Factur-X extension schema.

What it does NOT do (yet)

Usage

Testing

Validating an existing invoice

InvoiceValidator checks a curated, hand-picked set of business rules — not the full official EN 16931 schematron ruleset (see Roadmap):

Feed it XML extracted from a hybrid PDF via EmbeddedXmlExtractor (classic, unencrypted PDFs only, same limitation class as PdfA3Attacher; both our own uncompressed streams and third-party /FlateDecode-compressed ones are supported) or raw factur-x.xml content directly.

Roadmap


All versions of factur-x with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-dom Version *
ext-libxml Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pat-o-dev/factur-x contains the following files

Loading the files please wait ...