Download the PHP package thelia/facturx-module without Composer

On this page you can find all versions of the php package thelia/facturx-module. 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 facturx-module

Factur-X module for Thelia 3

Turns the invoice PDF of an order into a Factur-X document: a PDF/A-3 file that carries the structured invoice (CII XML) as an attachment, in the profile the merchant chose. The page stays readable by a person and becomes readable by a machine.

What it does

Profiles

Minimum, Basic WL, Basic, EN 16931 (default), Extended. The XML of each profile is validated against its official schema before it is embedded, and read back from the produced PDF.

Data it reads

Data Where it comes from
Invoice number order.invoice_ref; FA + the order reference for an order invoiced before pdf_invoice_ref_from or that has no invoice_ref (same rule as the PDF template)
Seller store settings (store_name, address, store_siret, store_vat_intracom); the module settings only fill what the store settings leave empty
Buyer invoice address frozen on the order: company or name, address, country, SIRET, VAT number
Tax categories S standard; K intra-community supply when the order is VAT exempted; E when the shop is not liable to VAT (store_vat_exempt); Z zero rate otherwise
Payment prepaid in full (the invoice exists once the order is paid); the payment method is the one frozen on the order, or the title of the payment module

Personal data is limited to what the invoice needs: no e-mail address and no phone number of the buyer.

Requirements

Access and limits of use

Route Right required Notes
GET /admin/module/FacturX/order/{id}/download view orders generates the invoice if it is not issued yet
POST /admin/module/FacturX/order/{id}/generate update orders needs the back-office token
POST /admin/module/FacturX/save update the module settings form

Generation is the costly operation: an administrator can start 30 of them per 15 minutes, beyond that the answer is 429. The archive lives in local/media/documents/facturx/, outside the web root. The module exposes no API resource.

Installation

Settings are under Back-office > Modules > Factur-X.

Limits

Tests

Run the tests through that command rather than phpunit alone: the DATABASE_* variables of the environment would send them to the development database.

FACTURX_LIBRARY_AUTOLOAD is only needed when the library is not in the project vendor. A module checkout must not carry its own vendor/ folder: the module loader scans the module directory.

Some tests depend on pieces that ship on their own release cycle and are reported as skipped when those are older than the module expects: the PDF template (the number printed on the invoice and on the credit note), the CreditNote module (it must be active in the test database) and the Flexy theme (the customer invoice route).

License

LGPL-3.0+, part of the Thelia ecosystem.


All versions of facturx-module with dependencies

PHP Build Version
Package Version
Requires thelia/core Version ^3.2
thelia/installer Version ^1.6
atgp/factur-x Version ^3.5
symfony/process Version ^6.4|^7.0
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 thelia/facturx-module contains the following files

Loading the files please wait ...