media24si/eslog2-reader
Composer 安装命令:
composer require media24si/eslog2-reader
包简介
Read and parse eSlog 2.0 XML invoice files
关键字:
README 文档
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
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-11