This library is a php wrapper for the ZPL Programming Language.

v0.0.3 2019-08-10 14:04 UTC

This package is auto-updated.

Last update: 2024-04-11 00:33:10 UTC


README

Installation:

composer require markovesic/zpl

How to use:

$driver = new \Zpl\ZplBuilder('mm');
$driver->setEncoding(28);
$driver->setFontMapper(new \Zpl\Fonts\Bematech\Lb1000());

$driver->SetFont('Arial',16);
$driver->SetXY(0, 0);
$driver->drawCell(100, 10, 'Hello World', true, true, 'C');

\Zpl\Printer::printer('192.168.1.1')->send($driver->toZpl());