samhk222/nfe-xml-to-obj

将发票xml转换为PHP对象的包

0.0.3 2018-11-15 16:04 UTC

This package is auto-updated.

Last update: 2024-09-16 05:08:10 UTC


README

这是一个简单的用于解析电子发票数据的库。

使用方法

composer require samhk222/nfe-xml-to-obj

在PHP调用中

<?PHP
include("vendor/autoload.php");

use samhk222\NFE\Parser;

$nfe = new Parser();
$nfe->CHECK_VALID_NF(file_get_contents('31180310494067000930550010000017761001433110-nfe.xml'));


echo "\n<pre>";
print_r($nfe);
print_r($nfe->__msg__);
echo "\n</pre>";