EN

Laravel Factur-X / French e-invoicing reform

The French e-invoicing reform (réforme de la facturation électronique) for Laravel: write and validate French Factur-X, UBL and CII invoices, send them through a plateforme agréée, follow their lifecycle statuses, file Flux 10 e-reporting and look up the SIREN directory.

composer require intragile/laravel-factur-x

Version
v1.0.0
PHP
8.3+
Packagist
0 downloads
GitHub
0 stars

The French e-invoicing reform (réforme de la facturation électronique) for Laravel: write and validate French Factur-X, UBL and CII invoices, send them through a plateforme agréée, follow their lifecycle statuses, file Flux 10 e-reporting and look up the SIREN directory.

Status: version 1.0.0, released 2026-11-23, on top of intragile/laravel-einvoicing 1.2. An accepted Flux 10 deposit is not live-verified yet; see the core's FRANCE.md.

This is a thin metapackage: it has no code of its own and pulls in intragile/laravel-einvoicing together with the rule package this use case needs, so that you can find it. The full functionality is documented there.

What the French flow covers

  • Formats: French UBL and CII D22B (CIUS), EXTENDED-CTC-FR and Factur-X, with the French data (billing framework, SIREN and SIRET, the mandatory notes).
  • French rules: validation against the FNFE-MPE rules, which are downloaded and compiled on your machine (vendor/bin/einvoicing-rules install france); their licence does not allow redistribution, so no package ships them.
  • Lifecycle: CDV lifecycle messages (CDAR) for the invoice statuses, with a builder, reader and validator.
  • E-reporting: Flux 10 builders for invoices, B2C days and payments, with their validator.
  • Routing: an offline decision between e-invoicing and e-reporting for a given transaction.
  • Transport: sending through B2Brouter as plateforme agréée, with lifecycle statuses, buyer responses, payments, the Flux 10 deposit and a live SIREN directory (Annuaire) lookup. Live-tested in the B2Brouter sandbox: directory lookup, send, lifecycle, buyer approval and payment; an accepted deposit is tested offline only.

Not covered: Chorus Pro (B2G invoicing to the public sector) and a generic driver for the AFNOR XP Z12-013 platform API.

Requirements

  • PHP 8.3+ with dom, libxml, mbstring (and zlib for PDF)
  • Laravel 12 or 13

Quick start

Once released:

composer require intragile/laravel-factur-x
php artisan einvoicing:install-rules   # the Peppol rules the doctor checks
vendor/bin/einvoicing-rules install france --dir=var/france-rules
php artisan migrate   # create the two tables
php artisan einvoicing:doctor

Configuring the B2Brouter transport, the French rules directory and the webhooks is described in the full documentation.

How it differs

  • pat-o-dev/factur-x-laravel handles the Factur-X format (the XML and the hybrid PDF). This package covers the reform flow around it: French rules, routing, lifecycle statuses, e-reporting and transmission through a plateforme agréée.
  • intragile/laravel-zugferd is the German side: ZUGFeRD / Factur-X hybrid PDFs and their validation, without the French reform flow. Both pull in the same intragile/laravel-einvoicing.

What it pulls in

intragile/laravel-einvoicing (the Laravel bridge, MIT), which brings the engine intragile/php-einvoicing (MIT) and the rule packages intragile/einvoicing-rules-en16931 (EUPL-1.2), intragile/einvoicing-rules-xrechnung (Apache-2.0) and intragile/einvoicing-rules-facturx (Apache-2.0). intragile/einvoicing-rules-facturx is required directly as well. The French FNFE-MPE rules are not a package: they are compiled locally by einvoicing-rules install france.

The metapackage itself is MIT-licensed and ships no code; each pulled package keeps its own licence.

Full documentation

Full documentation: laravel-einvoicing and the France country notes.

License

MIT. See LICENSE.


Developed and maintained by IntrAgile Kft.

This page is built from the README of version v1.0.0 of the package. Source on GitHubopens in a new tab