Linux 软件免费装
Banner图

eInvoice Validator for VAMPIRE PHP

开发者 naranili
更新时间 2026年11月21日 01:29
PHP版本: 8.2 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

validator peppol e-invoice xrechnung zugferd

下载

2.0.2

详情介绍:

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 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 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.

安装:

  1. Install the plugin through the WordPress plugins screen, or upload the plugin folder to /wp-content/plugins/.
  2. Activate the plugin through the "Plugins" screen.
  3. Open eInvoice Validator -> VAMPIRE and look at the section "Systemcheck". It shows whether PHP version, extensions and memory are sufficient.
  4. Add the shortcode [sppv_validator] to any page or post.
PHP 8.2 is a hard limit. On an older PHP version the plugin stays inactive and says so in the admin area.

屏幕截图:

  • A rejected invoice: the result, the validation steps and each error with the affected fields and the values the invoice carries.
  • A passed XRechnung, with a note from the XRechnung rules.
  • A ZUGFeRD PDF: the plugin takes the embedded XML out of the PDF and checks it against the EN 16931 rules for CII.

常见问题:

Do I need Java or another plugin?

No. The validation engine is written in PHP and included. The plugin needs PHP 8.2 or newer with the extensions dom, libxml and bcmath; 256 MB of memory are recommended.

Is the uploaded invoice stored anywhere?

No. The invoice is checked during the request and not kept. The plugin stores no invoices and no reports.

Which formats are not checked?

The ZUGFeRD profiles MINIMUM, BASIC WL and BASIC are checked only with the setting "Check against every edition". The national variants of Romania, Portugal, Belgium, Serbia, Italy, Croatia and Turkey are not included; such an invoice gets "No result" with the reason.

How long does a check take?

The time grows with the number of invoice lines. Measured on the development server, an invoice with 1,000 lines takes about 40 seconds and 174 MB of memory.

Can I limit how many invoices a visitor may upload?

Yes. The settings page has a table "Daily uploads per role", with a row for guests; 0 means no access.

Can a visitor check many invoices at once?

Yes. Next to "Single check" the page has the tab "Batch check": a visitor drops many invoices, a folder or a ZIP file, the browser sends them to the site one by one, and an overview lists the verdict of every file, with filters, sorting, a CSV download and a printable summary. A click on a row shows the report of that invoice. Every invoice counts against the daily upload limit like a single check, and the batch stops when the limit is reached. A page that should offer the single check only uses [sppv_validator batch="no"].

更新日志:

2.0.2 2.0.1 2.0.0 1.14.3 1.14.2 1.14.1 1.14.0 1.13.0 1.12.1 1.12.0 1.11.1 1.11.0 1.10.0 1.9.0 1.8.1 1.8.0 1.7.0 With the Extended Profiles add-on active, findings on fields of an extension (BT-X) show their value from the document. Without the add-on, a report that names such fields says so above the result. 1.6.0 1.5.1 1.5.0 1.4.5 1.4.0 – 1.4.4 1.3.0 Numbers and dates in the document view now follow the selected language: German writes 5.900,00 EUR and 01.12.2017, English 5,900.00 EUR and 2017-12-01, French 5 900,00 EUR. Where a text is missing in the selected language, the English one is shown together with a note saying so. 1.2.0 The shortcode is [sppv_validator], carrying this plugin's own prefix. No other plugin can claim the same name. Before 1.2.0 Development versions that were never shipped.