rafsalvioni / zeus-barcode-dhl
Provides a Objected-Oriented API to create, draw and manipulate barcode data using DHL (Deutsche Post) standards
1.1.0
2016-11-09 21:16 UTC
Requires
- php: >=5.5 <6
- rafsalvioni/zeus-barcode: 1.1.*
Requires (Dev)
- phpunit/phpunit: 5.3.0
This package is not auto-updated.
Last update: 2024-04-13 17:02:40 UTC
README
Provides a Objected-Oriented API to create, draw and manipulate barcode data using DHL (Deutsche Post) standards
Example
<?php require 'vendor/autoload.php'; use 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();