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

dev-master 2021-03-18 16:35 UTC

This package is auto-updated.

Last update: 2025-06-19 02:36:02 UTC


README

Installation:

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

Credit:

This package is a fork of Anderson Luiz Silvério's ZPL library and includes classes from Rob Gridley's Zebra Library