PHP developer in Málaga

PHP invoicing and shop software for Spain: what Real Decreto 1007/2023 and Orden HAC/1177/2024 require, the adaptation date AEAT states now, and how the records, hash chain and QR code are built.

PHP developer

My place in the WordPress community

  • I have had a wordpress.org account since 2006.
  • I contributed to WordPress core for versions 7.0 and 7.1.
  • I maintain 30 plugins on wordpress.org.
  • I organise and speak at WordCamps.
  • I have attended every WordCamp Europe from 2017 to 2026.
  • Local WordPress meetup: WordPress Málaga

My WordPress.org profile

#What VeriFactu means for invoicing software

VeriFactu is the common name for the regulation on invoicing software approved by Real Decreto 1007/2023 of 5 December. The Spanish tax agency (AEAT) says the name is a colloquial and inexact way of referring to that regulation, called RRSIF, and that “VERI*FACTU” is strictly the name of one of its two types of system. The technical detail sits in Orden HAC/1177/2024 of 17 October. The legal base is article 29.2.j of the General Tax Law, introduced by the anti-fraud law, Ley 11/2021.

The regulation does not change who has to invoice or what an invoice must contain. It changes how the software that issues invoices works. Each time an invoice is issued, the system generates and keeps, or sends to AEAT, an invoicing record with security and control measures: a fingerprint of the data, information from the previous record so omissions show up, and, in some modes, an electronic signature. Every invoice, complete or simplified, also carries a QR code.

For a PHP developer the consequence is concrete. A shop plugin that numbers orders, a billing module in a Laravel or Symfony application and a custom invoicing tool all count as invoicing systems if they issue invoices for a taxpayer in scope.

#Which dates apply now

The dates moved several times, so I give the chain and then the current statement.

  1. The original text of Real Decreto 1007/2023 set 1 July 2025 for taxpayers. Software producers had nine months from the entry into force of the ministerial order. The order was published in the BOE on 28 October 2024 and entered into force the next day.
  2. Real Decreto 254/2025 of 1 April replaced the date. Taxpayers under article 3.1.a had to have their systems adapted before 1 January 2026, and the other taxpayers in article 3.1 before 1 July 2026.
  3. Real Decreto-ley 43/2026 of 24 November 2026 changed the date again. AEAT’s information note, updated on 25 November 2026, says taxpayers must have their systems adapted before 6 October 2028.

The AEAT frequently asked questions, updated to 27 November 2026, tie the new date to the period in the fourth final provision of Real Decreto 238/2026 of 25 March, the decree on mandatory electronic invoicing between businesses. They call the time before it a trial period. A taxpayer may stop sending trial records and invoice with another system, including an old one, until the adaptation date. After that date, an old system that can still issue invoices is itself the problem, as the penalty section below explains. If a taxpayer starts issuing real invoices with a VERI*FACTU system after the date, AEAT says it has to stay with that mode at least until the end of the calendar year in which the first records were effectively sent.

I would not plan a project around the latest date alone. A date that moved three times can move again, and the requirements themselves have not changed. Work on the records and the QR code is the same whether the deadline is 2026 or 2028.

#Who is in scope, including in Malaga

AEAT describes two groups: producers and marketers of invoicing software, and businesses and professionals established in Spain who issue invoices. For the second group it gives a rule of four “no” conditions. The regulation applies if the taxpayer:

  1. does not invoice exclusively by hand, so uses some invoicing system;
  2. is not enrolled, voluntarily or mandatorily, in the immediate supply of information (SII) system for VAT;
  3. does not have a tax domicile in the historic territories of the Basque Country or in Navarre;
  4. holds no valid resolution that exempts it from the regulation.

Condition three excludes only the Basque and Navarre territories, so a business with its tax domicile in Malaga does not drop out through it. AEAT’s answer on online shops is direct: the conventional or virtual way goods are offered is irrelevant. OSS sales under the one-stop-shop regime are covered as well and use a specific code in the record, “17” from list L8, with the invoice type F1 for a complete and F2 for a simplified invoice.

Parque Tecnológico de Andalucía and the west of Malaga, seen from the air

Photo: Bj.schoenmakers, CC0, Wikimedia Commons.

Software companies in the city have a direct stake as producers. The Malaga TechPark describes itself as a technology park with more than 30 years of history, run in public-private cooperation, with the Junta de Andalucía, the city council, Unicaja and the University of Malaga as shareholders. A product built in PHP by a company there and sold to Spanish taxpayers is an invoicing system in the sense of the regulation if it issues invoices.

#What the software has to do

I split the requirements into the parts a developer touches. All of them come from the regulation, the order and the AEAT answers cited here.

Two modes. AEAT names the VERI*FACTU mode, which sends each record to AEAT at the moment of issue, and the mode where records are kept in the issuing system, also called NO VERI*FACTU. In the second mode the system adds an electronic signature of the records and keeps an event log with security requirements like those for the invoicing records. All systems produced and marketed must be able to export and transmit the records online. For small operators AEAT offers a free application on its website, which supports only complete invoices and not several recipients.

Two record types. The system produces an “alta” record when an invoice is issued and an “anulación” record when one is cancelled. The records are not invoices and do not hold all invoice data. They are based on the mandatory invoice information plus security data, the identity of the system and the date and time of production.

No editing. Once a record exists, AEAT says no action is allowed on it. To change a record, the system generates a new record that cancels or replaces the first. Direct changes to records already issued in the database must not be a possible operation, whether the system works in VERI*FACTU mode or not. Mentions that are not part of the record can be changed without a new record.

Hash chain. Article 13 of the order lists the data that goes into the hash of an alta record: issuer tax number, invoice number and series, issue date, invoice type, total tax, total amount, the hash of the previous record, and the date, time and time zone of generation. AEAT says the algorithm is SHA-256 for all record types, “for the moment”, and that the exact method and examples are in a technical document on its developer site. The PHP side is one function: the hash function returns the digest as lowercase hexadecimal unless the binary parameter is set.

$previous = $records->lastHash($issuerTaxId);          // empty for the first record
$record['previous_hash'] = $previous;
$record['hash'] = hash('sha256', buildHashInput($record)); // input string as defined by AEAT's technical document
$records->append($record);                              // insert only, never update

The snippet shows the chain and the append-only rule. The input string is not something to guess; it comes from AEAT’s document. A hash chain also means concurrent requests must not read the same previous hash, so records for one issuer are written in a serialised way, for example under a database lock.

Event log. Systems that do not send to AEAT must record events: start and end of operation as NO VERI*FACTU, anomaly checks and detections in invoicing records and event records, restore from backup, and export of records. They also write a summary record for every 6 hours of operation and one before shutdown, as article 9 of the order sets out.

QR code and phrase. Article 20 of the order requires the QR code on printed invoices and on the image of a digital invoice, and the phrase “Factura verificable en la sede electrónica de la AEAT” or “VERI*FACTU” for verifiable invoices. Article 21 sets the size between 30x30 and 40x40 millimetres, the ISO/IEC 18004 standard and error correction level M. The content is the URL of the AEAT verification service and, in that URL, the issuer tax number, series and number, issue date and total amount. For structured electronic invoices the URL travels as a separate field and the QR itself is not needed. AEAT adds that the record’s hash is not part of the QR data.

#Who certifies the software

The producer issues a declaración responsable, which AEAT calls a self-certification: no external body, no prior registration of the product. It is mandatory, has to be issued for every version, and has to be visible inside the system and available to the customer at the time of purchase.

AEAT’s answers matter for custom PHP work. If a company wrote its own invoicing software for its own use, the company has to certify it. An extension made by someone other than the producer of the original system, such as a custom module, is not covered by the original certification and needs its own. If the user builds it with its own staff or hired contractors under its own direction, the user is the producer and certifies it. If the user buys the extension as a product from a third party, that third party certifies it. For this reason a PHP project on an existing billing package starts with the question of who the producer of each component is.

#Penalties and old systems

Article 201 bis of the General Tax Law provides two serious infringements. Producing and marketing non-compliant systems carries a fixed amount of 150,000 euros per financial year in which such systems were sold, per type of system, and 1,000 euros per system marketed without a required certification. Holding systems that are not certified when they must be, or whose certified devices were altered, carries 50,000 euros per year.

AEAT answers a practical question: must an old billing program with historic data be deleted? Not necessarily. Keeping it is allowed if it can be shown that invoices can no longer be issued with it, normally by uninstalling it, or by changing it so that new invoices are impossible from a date. After the adaptation date, an old program that can still issue invoices makes its mere possession the infringement. AEAT says exporting the records is the most advisable way.

#How a PHP project with me runs

I am Mariusz Szatkowski, one developer in Gdynia, working remotely and in writing, with WordPress since 2006 and PHP for custom applications and shops.

  1. You send the system or shop URL, the goal, the deadline and the stack. The first answer arrives by email within 24 hours on working days.
  2. I list in writing which components issue invoices, who produces each, and which mode you want.
  3. The scope document covers the record tables, the append-only write path, the hash chain, the QR output and the event log, with my assumptions.
  4. Work runs on a staging copy with test data and AEAT’s test environment, which its technical pages list. I design any screens or implement yours.
  5. You accept in writing and the release follows. A maintenance option keeps dependencies and PHP versions current.

I need repository access, a description of the numbering series, the current invoice templates and the name of the person who answers for the certification.

#Checklist you can use without me

  • Write down which of your systems issue complete or simplified invoices.
  • Check the four “no” conditions for each taxpayer you invoice for.
  • Name the producer of each component, including plugins and custom modules.
  • Confirm the records table accepts inserts only, with no update path.
  • Serialise writes per issuer so two requests never share a previous hash.
  • Put the QR code and, for VERI*FACTU systems, the required phrase on the invoice template.
  • Decide how an old billing program stops being able to issue invoices.
  • Re-read AEAT’s information note before each release, because dates have changed before.

General information on my PHP work is on the PHP developer overview.

#Send me the invoicing system or shop

If you build or run invoicing or shop software in PHP for the Spanish market, send me the URL or a short description, the goal, your deadline and the stack through the contact page. The first estimate in writing carries no fee. Please mention the framework, the database and whether invoices are issued for one company or for several.

Need this service: PHP developer in Málaga?

Describe your project by e-mail. I reply within 24 hours.

Describe your project

Latest PHP developer articles

Dec 2, 2026

Laravel Rust: what does it mean for PHP apps?

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.

Explore other WordPress services and knowledge base