/zpl

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

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

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


Installation:

composer require andersonls/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());