PHP code example of softwarepunt / php-delegate-b2b-dgxml
1. Go to this page and download the library: Download softwarepunt/php-delegate-b2b-dgxml 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/ */
softwarepunt / php-delegate-b2b-dgxml example snippets
use SoftwarePunt\DGXML\Documents\ProductCatalog;
use SoftwarePunt\DGXML\Models\Supplier;
use SoftwarePunt\DGXML\Models\CatalogItem;
->Header->Supplier->Name = "Backshop";
$item = new CatalogItem();
$item->Number = 1602;
$item->Name = "Fuldkornsbrød";
$item->Price->Purchase = 1.6;
$catalog->Items[] = $item;
echo $catalog->toXml(); // <?xml ...