承接 thelia/facturx-module 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thelia/facturx-module

最新稳定版本:1.0.0

Composer 安装命令:

composer require thelia/facturx-module

包简介

Generates PDF/A-3 invoices compliant with Factur-X (EN16931) for electronic invoicing

README 文档

README

Generates PDF/A-3 invoices compliant with the Factur-X (EN16931) standard for French electronic invoicing requirements.

How it works

The module intercepts Thelia's PDF invoice generation. When an invoice is produced, it:

  1. Builds a CrossIndustryInvoice XML (CII) from the order data
  2. Embeds the XML into the PDF and converts it to PDF/A-3 using atgp/factur-x
  3. Archives the resulting PDF to disk
  4. Returns the compliant PDF to the user

The process is transparent — existing invoice generation continues to work as before, with Factur-X compliance added on top.

Requirements

  • Thelia 3
  • PHP 8.2+

Installation

Via Composer:

composer require thelia/facturx-module
php Thelia module:activate FacturX
php Thelia cache:clear

Manual installation:

git clone <repository-url> local/modules/FacturX
composer require atgp/factur-x
php Thelia module:activate FacturX
php Thelia cache:clear

Configuration

Navigate to Back-office > Modules > Factur-X and fill in:

Field Description
SIRET Your company's 14-digit SIRET number
VAT identification number EU VAT number, e.g. FR12345678901
Enable Factur-X Toggle automatic generation on/off

Seller name and address are read from the store configuration (Settings > Store).

EN16931 Compliance

The generated XML covers the EN16931 comfort profile:

  • Seller: name, address, SIRET (BT-30), VAT number (BT-31)
  • Buyer: name and address from the invoice address
  • Invoice: number, date, currency, type code (380)
  • Lines: product name, quantity, unit price, VAT rate
  • Totals: line total, tax basis, tax amount, grand total, due payable amount

Archive

Generated Factur-X PDFs are automatically archived on disk, organized by year. The storage path is configurable in the module settings.

File Structure

FacturX/
├── composer.json
├── FacturX.php
├── Config/
│   ├── module.xml
│   └── config.xml
├── EventListener/
│   └── InvoicePdfListener.php
├── Service/
│   └── FacturXService.php
├── Form/
│   └── ConfigurationForm.php
├── Controller/
│   └── Admin/
│       └── ConfigurationController.php
├── I18n/
│   ├── fr_FR.php
│   └── en_US.php
└── templates/
    └── backOffice/
        └── default/
            └── facturx-configuration.html

License

This module is part of the Thelia e-commerce ecosystem.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2026-02-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固