PHP code example of rafsalvioni / zeus-barcode-dhl
1. Go to this page and download the library: Download rafsalvioni/zeus-barcode-dhl 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/ */
rafsalvioni / zeus-barcode-dhl example snippets
Zeus\Barcode\Renderer\SvgRenderer;
$bcs = [
new \Zeus\Barcode\DHL\Leitcode('21348075016401'),
new \Zeus\Barcode\DHL\Identcode('563102430313'),
];
$render = new SvgRenderer();
$render->merge = true;
foreach ($bcs as &$bc) {
$bc->border = 2;
$bc->showText = true;
$bc->draw($render);
$render->offsetTop += $bc->getTotalHeight() + 50;
}
$render->render();