Skip to content

andersonls/zpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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\Generic());

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

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

Donations

If this project helps you somehow, you can give me a cup of coffee :)

paypal