PHP code example of greenterose / xml
1. Go to this page and download the library: Download greenterose/xml 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/ */
greenterose / xml example snippets
use Greenter\Xml\Builder\InvoiceBuilder;
$invoice = createInvoice(); // create a custom new Invoice()
$builder = new InvoiceBuilder();
$xml = $builder->build($invoice);
echo $xml;