阅读和制作符合欧洲要求的电子发票图书馆(EN 16931)
European Invoicing (eInvoicing)
eInvoicing is a PHP library for creating and reading electronic invoices according to the eInvoicing Directive and European standard.
It aims to be 100% compliant with EN 16931 as well as with the most popular CIUS and extensions, such as PEPPOL BIS.
First of all, make sure your environment meets the following requirements:
Then, you should be able to install this library using Composer:
composer require josemmo/einvoicingFor a proper quick start guide, visit the documentation website at https://josemmo.github.io/einvoicing/.
use Einvoicing\Exceptions\ValidationException;
use Einvoicing\Readers\UblReader;
$reader = new UblReader();
$document = file_get_contents(__DIR__ . "/example.xml");
$inv = $reader->import($document);
try {
$inv->validate();
} catch (ValidationException $e) {
// Invoice is not EN 16931 complaint
}…These are the expected features for the library and how's it going so far:
暂无开放 Issues,或尚未同步最近议题。