PHP code example of reginaldoazevedojr / zebra
1. Go to this page and download the library: Download reginaldoazevedojr/zebra 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/ */
reginaldoazevedojr / zebra example snippets
use Zebra\Client;
use Zebra\Zpl\Image;
use Zebra\Zpl\Builder;
$zpl = new Builder();
$zpl->fo(50, 50);
$image = new Image(file_get_contents('example.png'));
$zpl->gf($image);
$client = new Client('10.0.0.50');
$client->send($zpl);
$image = new Image(file_get_contents('example.png'));
$zpl = Zpl::start()->fo(50, 50)->gf($image);
Client::printer('10.0.0.50')->send($zpl);