How to display the current and parent category in WordPress
Need to show the category hierarchy in your theme? Learn how to get the current category and its parent using get_the_category() and get_category_parents().
French business-to-business invoicing changed on 1 September 2026. I am Mariusz Szatkowski, a PHP developer in Gdynia, and my work for clients in northern France runs by email. For a PHP application the question is concrete: which invoices it must now be able to receive, which it must issue, in which format, and through whom. The legal position of a company is for its accountant. I build the application side and I keep to what the DGFiP and the Ministry of Economy publish.

Colonne de la Déesse on the Grand Place of Lille, taken by Velvet and shared under CC BY-SA 3.0 on Wikimedia Commons.
The DGFiP FAQ “Je découvre la facturation électronique”, version of 1 September 2026, gives the calendar:
| Obligation | Who | Date |
|---|---|---|
| Receive electronic invoices through an approved platform | all companies, whatever their size or legal form | 1 September 2026 |
| Issue all invoices electronically | large and intermediate-size companies | 1 September 2026 |
| Issue invoices electronically | small, medium and micro companies | 1 September 2027 at the latest |
The e-reporting calendar of transaction and payment data is the same. The FAQ adds that a company may enter the reform early for invoicing, and that entering early has no effect on the e-reporting date, which can follow separately but no later than 1 September 2027. Company size is judged per legal unit (SIREN), and the FAQ points to its question 1.1 for the reference date.
Receiving applies to every company, including those that only buy. An accounts-payable screen built around PDFs by mail is no longer the whole picture, because a supplier’s invoice may now arrive as structured data from a platform.
The DGFiP sheet on approved platforms (version of September 2025) describes a platform as an IT service provider that sends, transmits and receives electronic invoices between supplier and customer, extracts the useful data for the administration, builds e-reporting data and updates the directory of invoice recipients for its clients. Only platforms registered by the DGFiP after reviewing a file may be called approved. The sheet says there were nearly one hundred of them, and that registration lasts three years and is renewable, with ISO 27001 or SecNumCloud certification, two-factor authentication, no transfer of data outside the European Union and the ability to interconnect with other platforms.
The company chooses freely and may use one or several. It signs a formal agreement with the platform it names for receiving invoices in the directory the administration manages. The FAQ says issuing and receiving may go through different platforms.
Software that is not itself a platform is called a compatible solution. The FAQ gives two cumulative conditions: it offers functions matching the reform, and it is connected to at least one approved platform. The DGFiP sheet states that an operator of this kind cannot transmit invoices or e-reporting data to the administration directly.
For a custom PHP application the architecture follows. It does not talk to the tax administration. It exchanges invoices with a platform the client selected, and the start-phase guide cites article 289 E of the Code général des impôts for this: invoice data reaches the administration from the platform. I did not read any platform’s technical interface for this page, so the choice of platform and its connection method is a project question.
The DGFiP sheet 1-f-v states that approved platforms are bound by regulation to transmit electronic invoices in one of three formats:
The FAQ draws the line against the old habit. A simple PDF sent electronically is not an electronic invoice within the meaning of the system. An electronic invoice carries a base of data in structured form, such as the amount excluding tax, the VAT rate, the VAT amount and the identification numbers of supplier and customer, according to the platform sheet.
In PHP, building and reading these XML files is ordinary work with the DOM and XMLWriter extensions documented on php.net. The decision that matters is where the structured data lives: in the order and invoice tables of the application, never only in a rendered PDF. A PDF can be regenerated from data, but data cannot be reliably recovered from a PDF.
The FAQ lists four mentions that become mandatory from 1 September 2026, under decree no. 2022-1299 of 7 October 2022, which amends article 242 nonies A of annex II to the Code général des impôts:
The other mandatory mentions from the Commercial Code and the tax code stay as they were. The FAQ also says the administration does not collect every mention. It gets the data listed in article 41 septies D of annex IV, extracted by the issuer’s platform, and the structured collection is gradual: 26 mandatory data items in 2026 and 34 from 2027.
For a PHP data model this is a short list of columns and validation rules. Customer SIREN as a nine-digit field on the customer record, an enum for operation category on every invoice line or invoice, a boolean for the VAT option, and an optional delivery address. A validation that refuses to finalise an invoice without them is cheaper than a platform rejection.
The DGFiP published a practical guide for the start phase. It rests on three principles. The legal calendar stands. Economic continuity matters: an invoice received by email, PDF or paper should not be discarded for that reason alone if it matches a real operation and carries the necessary information. And continuity is not an exemption. The guide says no penalties apply during the start phase to companies that face difficulties but are on a serious path to compliance, and it adds that this is neither a postponement nor a suspension of the obligation.
The part that touches code directly is duplicate handling. When the same invoice arrives through several channels, the guide says the recipient must avoid double processing, treat the case as a reconciliation, designate one reference invoice, continue validation and payment on that basis only, and mark the other copies as copies, duplicates or duplicata. It lists the elements to compare:
When the elements match, it is normally one invoice sent several times. If there is serious doubt, the recipient contacts the supplier or its platform, and the doubt stays limited to that invoice instead of blocking the whole process.
On the sending side, the guide says that when the electronic flow works, a duplicate by email, PDF or customer portal should not be sent systematically. Further sends should be driven by the statuses: a copy may help when the status shows the invoice was not transmitted, was rejected, was not routed or is not accessible to the recipient. A duplicate should be clearly tied to the initial invoice, for example with a mention such as “duplicata”, “copie” or “copie de continuité”, or in the accompanying information with invoice number, date, amount, initial channel and the reason for sending. A correction of a rejected flow must not be recorded as a new operation.
<?php
declare(strict_types=1);
final class ReceivedInvoice
{
public function __construct(
public readonly string $number,
public readonly string $supplierSiren,
public readonly string $customerSiren,
public readonly string $issueDate, // 2026-12-04
public readonly int $netCents,
public readonly int $vatCents,
public readonly int $grossCents,
) {}
public function sameAs(self $other): bool
{
return $this->number === $other->number
&& $this->supplierSiren === $other->supplierSiren
&& $this->customerSiren === $other->customerSiren
&& $this->issueDate === $other->issueDate
&& $this->netCents === $other->netCents
&& $this->vatCents === $other->vatCents
&& $this->grossCents === $other->grossCents;
}
}Amounts in whole cents avoid float comparison. A match marks the second record as a copy of the first and links the two. It never deletes it, because the guide asks the company to keep the trace of the reconciliation, so it can show that one operation was booked, paid and deducted once. A mismatch in one field opens a case for that invoice only.
The guide says the directory of recipients exists so that platforms can address electronic invoices to the recipient’s platform. It is made available to the platforms by the State and fed by them. The system is built so that a short outage does not block all invoicing: platforms may rely on previously retrieved copies of the directory and on the technical addresses used in the exchanges, among them Peppol addresses where available and relevant. When an incident still prevents reliable recipient information, the company checks SIREN, SIRET and the receiving establishment, contacts its platform or provider, confirms with its customer where necessary, processes the flows it can, and documents the difficulty.
In the application this means storing SIREN and SIRET for every customer and the receiving establishment where it differs, and logging every addressing failure with the invoice it concerned. The log doubles as the evidence of an active path to compliance that the guide asks for.
The sheet 1-f-v says electronic invoicing to public bodies has existed since 2017 through Chorus Pro, and that suppliers have two options with the reform: keep depositing invoices for the public sphere on Chorus Pro directly (portal, API or EDI), or send them through an approved platform connected to Chorus Pro. A PHP application that serves both private and public customers needs a routing rule per customer type.
Tell me which system issues or receives your invoices and which platform you have chosen, through the contact form. The first written estimate is free and lists what I would change in the application. I am not a lawyer, and whether the obligation applies to your company stays with you and your accountant.
Examples of my work.
Digital World Capital LLP is an alternative investment manager specializing in the telecommunications and media sectors on a global scale. The company focuse...
In the eastern part of Mielno, an exclusive apartment complex by the Baltic Sea, DUNE Resort, is being developed. This exceptional investment evokes the lu...
Instytut-csr.net is one of the valuable projects in my WordPress developer portfolio, realised as an educational and informational platform dedicated to Corp...
Describe your project by e-mail. I reply within 24 hours.
Describe your projectNeed to show the category hierarchy in your theme? Learn how to get the current category and its parent using get_the_category() and get_category_parents().
Need to get the URL of the first image or link in an article? Prefer DOMDocument over regex. Ready-made WordPress PHP for developers.
On 1 December 2026 Taylor Otwell shipped the Laravel Rust beta, and Laravel Go followed a day later. What the framework contains, what the 18x benchmark really measures, what happens to Laravel PHP and WordPress, and when a rewrite makes sense.
Custom WordPress engineering and architecture.
Scalable headless, ERP, and AI architecture for enterprise.
Stores, checkout flow, and sales logic.
Stability, updates, and post-launch support.
What the monthly care fee covers and what changes it.
Business process automation around WordPress and company systems.
Headless WordPress, Sanity, Strapi, and Contentful with Astro or Next.js.
Astro, MDX, edge delivery, and Core Web Vitals measured on real traffic.

How to start as a WordPress developer in 2026. Local environment, theme and plugin development, REST API and headless paths, security and Core Web Vitals. A practitioner playbook that does not waste your first month.

WordPress 7.0 with AI Client against Astro 7 with the Rust compiler and Vite 8. Speed, cost, SEO and security compared, plus the real bill for my own Astro 6 to 7 migration.

A detailed comparison table of EmDash CMS and WordPress across architecture, security, plugins, AI features, content model, hosting, and ecosystem maturity.