A PHP library for reading and parsing eSlog 2.0 XML invoice files.
Install via Composer:
composer require media24si/eslog2_reader- PHP >= 8.1
- ext-simplexml
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
// ...- Parse eSlog 2.0 XML invoice format
- Extract line items, tax information, and financial details
- Support for various segment types (dates, amounts, taxes, etc.)
Run the test suite:
composer testOr run PHPUnit directly:
./vendor/bin/phpunitMIT License. See LICENSE for more information.
Mark Hafner