A modern object-oriented PHP library to create valid UBL files. Feel free to contribute if you are missing features.
This package requires PHP 7.0 or higher. Installation can be done through composer.
$ composer require num-num/ubl-invoice
Feel free to create a pull request for code additions/changes. Please always follow the PSR-12 coding standard. You can use PHP_CodeSniffer in your editor to ensure you are following this standard, since a PSR-12 compliant phpcs.xml
file is included in the source code.
This repository does not have a documentation website at this moment. For now, you can find a few simple code examples in the tests
folder.
Although unit testing is included, 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. can be run by running composer test
in the repository root.
$ cd ubl-invoice
$ composer test