
eInvoice Validator for VAMPIRE PHP
v2.0.2naranili · 2026年11月20日 上架
Validate e-invoices on a page of your own site, in pure PHP - no Java, no background service, no external server.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 114
- 最近更新
- 2026年11月21日
贡献者
截图
![The drop area the [sppv_validator] shortcode places on a page.](https://ps.w.org/einvoice-validator-for-vampire/assets/screenshot-1.png?rev=3814211)



eInvoice Validator for VAMPIRE PHP checks electronic invoices against EN 16931 and its national and sector rules. Visitors drop an invoice onto a page, the plugin checks it on your server and shows the report on the page, with a download of the report as XML.
The validation engine VAMPIRE PHP is included. It runs in the same PHP process as WordPress, so the plugin works on ordinary web hosting: it needs no Java runtime, no daemon and no other plugin.
What it checks
- XRechnung 3.0.2 ( UBL Invoice, UBL CreditNote and CII, including Extension and CVD )
- The EN 16931 core rules for UBL and CII
- Peppol BIS Billing 3.0.21, Invoice and CreditNote
- Factur-X / ZUGFeRD 2.5.2 in the profiles EN16931 and EXTENDED
An invoice of a format whose rule set is not included gets the result “No result” with the missing rule set as the reason, never a false “Rejected”.
What it does
- Drag & drop upload of XML invoices and of ZUGFeRD / Factur-X PDFs. The invoice XML is taken out of the PDF in the visitor’s browser, so only the XML reaches the server.
- A readable report: result, validation steps, every finding explained in plain language with the affected field, and a field-by-field view of the invoice.
- Report download in the report format of the KoSIT validator, and a REST route
POST /wp-json/einvoice/v1/validate-php. - Positive test report on request: the report lists every rule checked with its result, including the satisfied ones.
- Check against every edition on request: ZUGFeRD and Factur-X invoices are checked against each edition of their format, and a table shows the result per edition.
- Rule packages and rule profiles: new rule sets can be installed as a ZIP file without replacing the plugin, and own rule profiles from the Rule Studio can be added to the official rules.
- Upload defences: size limit, a daily upload limit per role with its own row for guests, nonce-based protection with a fresh nonce for cached pages, and no lasting copy of the invoice.
Works with the companion tools
With eInvoice Viewer for PEPPOL & EN16931 active, an invoice opened in the viewer gets the button “Validate with VAMPIRE”. This is optional; nothing needs configuring.
The rule packages
The rule packages are not original work of this plugin. Each one is derived by machine from a published Schematron rule set of CEN, KoSIT, OpenPeppol or FeRD, and each carries the licence of its source. The file vendor/invoicepress/vampire-php/NOTICE names origin, rights holder and licence of every rule package, and the licence texts lie beside it.
Source code and build
The scripts in assets/js/ whose names end in .bundle.js are built with esbuild from the ES modules in assets/js/source/, which ship with the plugin. assets/js/source/BUILD.txt explains how to rebuild them, and assets/js/source/build.mjs does it with one command; with the esbuild version named there the result is byte-identical to the shipped files. The data table assets/js/source/src/model/en16931-versions.json is written by the generator assets/js/source/tools/build-en16931-structure.mjs, which is included as well.
The translation tables i18n/de.json.js and i18n/fr.json.js are generated from languages/einvoice-validator-for-vampire-de_DE.po and languages/einvoice-validator-for-vampire-fr_FR.po. Each table holds the msgid and msgstr pairs that the scripts use.
The folder assets/js/pdfjs/ holds Mozilla pdf.js 6.3.289 unchanged, under the Apache License 2.0 with its licence text next to the files. Its source code is at https://github.com/mozilla/pdf.js.
External services
This plugin contacts no external service. It makes no outgoing request – not on page loads, not on uploads, not during validation, not on any admin page. It never downloads rule packages by itself; you install a new one by uploading the file.