bullyard / ubl-invoice
A modern object-oriented PHP library to create valid EHF 3.0 xml-files
Requires
- php: ^7.0||^8.0
- sabre/xml: ^2.1
Requires (Dev)
- phpunit/phpunit: ^7.0
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.