PHP code example of samhk222 / nfe-xml-to-obj
1. Go to this page and download the library: Download samhk222/nfe-xml-to-obj library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
samhk222 / nfe-xml-to-obj example snippets
<?PHP
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>";