bullyard/ubl-invoice

A modern object-oriented PHP library to create valid EHF 3.0 xml-files

v1.8.2 2023-06-18 22:30 UTC

This package is auto-updated.

Last update: 2024-04-07 18:26:27 UTC


README

Rough implemntation to support invoice, credit note and reminder

UBL-Invoice

A PHP Wrapper for creating UBL invoices. This code is a hard fork of the cleverit/UBL_invoice package. Feel free to contribute if you are missing features.

Installation and usage

This package requires PHP 8.0 or higher. Installation can be done with composer.

composer require bullyard/ubl-invoice

Contributing

Feel free to create a pull request for code additions/changes. Please always follow the PSR-2 coding standard. You can use PHP_CodeSniffer in your editor to ensure this, since a phpcs.xml file is included with this project.

Examples & Documentation

This repository does not provide any documentation at the moment. For now, you can find a fairly simple example in the unit test files in the tests folder.

Unit testing

This repository does not provide exhaustive unit testing for all possiblities, getters & setters that are included in the code. Please feel free to add new unit tests for new features that you write. Unit tests are to be created in the tests folder and can be run by running phpunit in the repository root.