rafsalvioni / zeus-barcode-dhl
Provides a Objected-Oriented API to create, draw and manipulate barcode data using DHL (Deutsche Post) standards
2.0.0
2024-06-29 18:40 UTC
Requires
- php: ^7
- rafsalvioni/zeus-barcode: ^2
Requires (Dev)
- phpunit/phpunit: 5.7.*
This package is auto-updated.
Last update: 2025-01-29 20:13:46 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();