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

Maintainers

Package info

github.com/Stowers-LIMS/zpl

pkg:composer/stowers-lims/zpl

Statistics

Installs: 25 166

Dependents: 0

Suggesters: 0

Stars: 1

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

This package is auto-updated.

Last update: 2026-03-19 04:26:29 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