PHPackages                             reginaldoazevedojr/zebra - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. reginaldoazevedojr/zebra

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

reginaldoazevedojr/zebra
========================

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

1.2(10y ago)44.6k1PHPPHP &gt;=5.6.0

Since Dec 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/reginaldoazevedojr/zebra)[ Packagist](https://packagist.org/packages/reginaldoazevedojr/zebra)[ RSS](/packages/reginaldoazevedojr-zebra/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Zebra
=====

[](#zebra)

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

Requires: PHP 5.6 with the GD module.

- Create ZPL code in PHP that is clean and easy to read.
- Convert images to ASCII hex bitmaps (JPEG, PNG, GIF, WBMP, and GD2 supported).
- Simple wrapper for PHP sockets to send ZPL to the printer via raw TCP/IP (port 9100).

Example
-------

[](#example)

The following example will print a label with an image positioned 50 dots from the top left.

```
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);
```

The same example using static constructors and method chaining:

```
$image = new Image(file_get_contents('example.png'));
$zpl = Zpl::start()->fo(50, 50)->gf($image);
Client::printer('10.0.0.50')->send($zpl);
```

Installation with Composer
--------------------------

[](#installation-with-composer)

```
$ composer require 'reginaldoazevedojr/zebra:dev-master'
$ composer update

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3809d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6577416303ed20738b3474e6f7403aa5e4efd4b0ff6cfa1bec23c635a2840d36?d=identicon)[reginaldoazevedojr](/maintainers/reginaldoazevedojr)

---

Top Contributors

[![reginaldoazevedojr](https://avatars.githubusercontent.com/u/7468816?v=4)](https://github.com/reginaldoazevedojr "reginaldoazevedojr (5 commits)")

### Embed Badge

![Health badge](/badges/reginaldoazevedojr-zebra/health.svg)

```
[![Health](https://phpackages.com/badges/reginaldoazevedojr-zebra/health.svg)](https://phpackages.com/packages/reginaldoazevedojr-zebra)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
