2017 © Pedro Peláez
 

library zebra

PHP ZPL builder, image conversion and a basic client for network-connected Zebra label printers.

image

robgridley/zebra

PHP ZPL builder, image conversion and a basic client for network-connected Zebra label printers.

  • Tuesday, April 3, 2018
  • by robgridley
  • Repository
  • 17 Watchers
  • 92 Stars
  • 38,137 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 22 Forks
  • 2 Open issues
  • 6 Versions
  • 17 % Grown

The README.md

Zebra

PHP ZPL builder, image conversion and a basic client for network-connected Zebra label printers., (*1)

Requires: PHP 7.1.0+, (*2)

  • Convert images to ASCII hex.
  • Create ZPL code in PHP that is easy to read.
  • Simple wrapper for PHP sockets to send ZPL to the printer via raw TCP/IP (port 9100).

Example

The following example will print a label with an image positioned 50 dots from the top left., (*3)

use Zebra\Client;
use Zebra\Zpl\Image;
use Zebra\Zpl\Builder;
use Zebra\Zpl\GdDecoder;

$decoder = GdDecoder::fromPath('example.png');
$image = new Image($decoder);

$zpl = new Builder();
$zpl->fo(50, 50)->gf($image)->fs();

$client = new Client('10.0.0.50');
$client->send($zpl);

Installation with Composer

$ composer require robgridley/zebra

The Versions

03/04 2018

dev-master

9999999-dev

PHP ZPL builder, image conversion and a basic client for network-connected Zebra label printers.

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Rob Gridley

image zebra zpl

03/04 2018

2.0.1

2.0.1.0

PHP ZPL builder, image conversion and a basic client for network-connected Zebra label printers.

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Rob Gridley

image zebra zpl

02/04 2018

2.0.0

2.0.0.0

PHP ZPL builder, image conversion and a basic client for network-connected Zebra label printers.

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Rob Gridley

image zebra zpl

13/03 2017

1.0.2

1.0.2.0

PHP ZPL builder, image conversion and a basic client for network-connected Zebra label printers.

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-gd *

 

The Development Requires

by Rob Gridley

image zebra zpl

04/04 2016

1.0.1

1.0.1.0

PHP ZPL builder, image conversion and a basic client for network-connected Zebra label printers.

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-gd *

 

The Development Requires

by Rob Gridley

image zebra zpl

18/02 2016

1.0.0

1.0.0.0

PHP ZPL builder, image conversion and a basic client for network-connected Zebra label printers.

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-gd *

 

The Development Requires

by Rob Gridley

image zebra zpl