media24si / eslog2-reader
Read and parse eSlog 2.0 XML invoice files
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/media24si/eslog2-reader
Requires
- php: >=8.1
- ext-simplexml: *
Requires (Dev)
- phpunit/phpunit: ^10.0
README
A PHP library for reading and parsing eSlog 2.0 XML invoice files.
Installation
Install via Composer:
composer require media24si/eslog2_reader
Requirements
- PHP >= 8.1
- ext-simplexml
Usage
use Media24si\eSlog2Reader\ParseInvoiceXML; // Parse an eSlog 2.0 invoice XML file $parser = new ParseInvoiceXML(); $invoice = $parser->getAllData('path/to/invoice.xml'); //To get all invoice data $invoice = $parser->getSpecificData('path/to/invoice.xml'); //Get specific data at your request (must set it up) // Access invoice data // ...
Features
- Parse eSlog 2.0 XML invoice format
- Extract line items, tax information, and financial details
- Support for various segment types (dates, amounts, taxes, etc.)
Testing
Run the test suite:
composer test
Or run PHPUnit directly:
./vendor/bin/phpunit
License
MIT License. See LICENSE for more information.
Author
Mark Hafner