Download the PHP package easybill/e-invoicing without Composer
On this page you can find all versions of the php package easybill/e-invoicing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package e-invoicing
e-invoicing
[]()
Introduction
e-invoicing
is a library to generate and read data of specifications which comply with the EN16931.
It is possible to generate CIUS like XRechnung, Peppol BIS Billing and ZUGFeRD / factur-x.
Usage
Example: EN16931 Cross Industry Invoice
In this example we generate a normal EN16931 as Cross Industry Invoice.
Example: EN16931 Universal Business Language Invoice
In this example we generate a CIUS (XRechnung 3.0) as UBL document
Example: Reading an unknown XML file
There might be the case that you receive some XML which may or may not be supported by this library. e-invoicing
offers a handy
way to just parse that XML and see if is deserializable to UBL or CII.
You can refer to the tests in this repository for examples of using this library.
Customization
This library offers some degree of customization. You may create a customized Reader, Transformer or Writer. By default, the library does not trim whitespaces around values. This is true for values which do not end as enums. If you want to add that the functionality to trim the values you may refer to this test.
This allows to register custom handlers, or even add handlers which the library offers but does not include by default (yet) like the TrimStringValueHandler.
Considerations
Limitations
This library does not offer any way to validate the structured data against the rules of EN16931 or any of the CIUS. Please take a look at the folder Validators in the tests folder. There you will find ways to validate the documents against the CIUS specification rulesets. ZUGFeRD/factur-x offers XSD-Schema-Files which you may use directly in your PHP code. KOSiT offers a dedicated validator to validate your EN16931 document against the XRechnung CIUS specification.
Issues and contribution
Feel free to create Pull-Requests or Issue if you have trouble with this library or any related resource.