PHP code example of andersonls / zpl
1. Go to this page and download the library: Download andersonls/zpl library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
andersonls / zpl example snippets
$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());