PHP code example of hectordev15 / xml-parser

1. Go to this page and download the library: Download hectordev15/xml-parser 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/ */

    

hectordev15 / xml-parser example snippets


use Greenter\Xml\Parser\InvoiceParser;
 file_get_contents('20000000001-01-F001-1.xml');
$invoice = $parser->parse($xml); // get an invoice.

var_dump($invoice);