PHPackages                             robgridley/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. [Image &amp; Media](/categories/media)
4. /
5. robgridley/zebra

ActiveLibrary[Image &amp; Media](/categories/media)

robgridley/zebra
================

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

v2.0.2(4y ago)2261.8M↓40.7%55[6 issues](https://github.com/robgridley/zebra/issues)[3 PRs](https://github.com/robgridley/zebra/pulls)2MITPHPPHP &gt;=7.1.0

Since Feb 18Pushed 4y ago26 watchersCompare

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

READMEChangelog (6)Dependencies (1)Versions (7)Used By (2)

Zebra
=====

[](#zebra)

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

Requires: PHP 7.1.0+

- 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
-------

[](#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;
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
--------------------------

[](#installation-with-composer)

```
$ composer require robgridley/zebra

```

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity60

Solid adoption and visibility

Community24

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~432 days

Recently: every ~528 days

Total

6

Last Release

1603d ago

Major Versions

1.0.2 → 2.0.02018-04-02

PHP version history (2 changes)1.0.0PHP &gt;=5.5.9

2.0.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b86b46c6650529f0d67312b873a0b1f77ca82937ebf12108f4a38a8f0230dc0?d=identicon)[robgridley](/maintainers/robgridley)

---

Top Contributors

[![robgridley](https://avatars.githubusercontent.com/u/9560656?v=4)](https://github.com/robgridley "robgridley (15 commits)")[![krystofc](https://avatars.githubusercontent.com/u/2040733?v=4)](https://github.com/krystofc "krystofc (1 commits)")

---

Tags

imagezebrazpl

### Embed Badge

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

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

###  Alternatives

[intervention/image

PHP Image Processing

14.8k203.8M2.5k](/packages/intervention-image)[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.8k52.6M137](/packages/league-glide)[liip/imagine-bundle

This bundle provides an image manipulation abstraction toolkit for Symfony-based projects.

1.7k39.4M236](/packages/liip-imagine-bundle)[spatie/image

Manipulate images with an expressive API

1.4k58.5M175](/packages/spatie-image)[intervention/image-laravel

Laravel Integration of Intervention Image

1558.1M158](/packages/intervention-image-laravel)[intervention/gif

PHP GIF Encoder/Decoder

6025.4M14](/packages/intervention-gif)

PHPackages © 2026

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