PHPackages                             gblix/weez-zpl - 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. gblix/weez-zpl

ActiveLibrary

gblix/weez-zpl
==============

Project weez-zpl, forked from teddy-dubal/weez-zpl. This one is focused on its maintenance.

0.0.9(5y ago)214.4k↓41.7%2[1 PRs](https://github.com/GBLIX/weez-zpl/pulls)PHPPHP ^7.3 || ^8CI passing

Since Jul 16Pushed 3mo agoCompare

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

READMEChangelog (7)Dependencies (6)Versions (11)Used By (0)

Weez-ZPL
========

[](#weez-zpl)

Inspired by [w3blogfr/zebra-zpl](https://github.com/w3blogfr/zebra-zpl)

This library will help you to quickly generate ZPL code for your Zebra printer.

Library support only most commons ZPL commons (Text, Code bar 39)

For the moment, library was tested on Zebra 300 dpi with native font zebra-0. I

But you can insert natif zpl at all times.

You can also fork this project and share code if you make this library better.

Getting started
---------------

[](#getting-started)

Clone the repository and install dependencies:

```
$ git clone https://github.com/teddy-dubal/weez-zpl.git
$ cd weez-zpl/docker
$ docker-compose up
$ docker exec -it docker_appzpl_1 bash
$ su application
$ composer install
$ php test.php
```

```
$faker      = Factory::create();
$fakerImage = $faker->image(null, 150, 150, 'transport', true);
//Init Label
$zebraLabel = new ZebraLabel(912, 912);
$zebraLabel->setDefaultZebraFont(new ZebraFont(ZebraFont::ZEBRA_ZERO));
//Add Text element
$zebraLabel->addElement(new ZebraText(10, 84, "Product:", 14));
$zebraLabel->addElement(new ZebraText(395, 84, "Camera", 14));

$zebraLabel->addElement(new ZebraGraficBox(10, 100, 800, 5));

$zebraLabel->addElement(new ZebraText(10, 161, "CA201212AA", 14));

//Add Code Bar 39
$zebraLabel->addElement(new ZebraBarCode39(10, 297, "CA201212AA", 118, 2, 2));

$zebraLabel->addElement(new ZebraText(10, 365, "Qté:", 11));
$zebraLabel->addElement(new ZebraText(180, 365, "3", 11));
$zebraLabel->addElement(new ZebraText(317, 365, "QA", 11));

$zebraLabel->addElement(new ZebraText(10, 520, "Ref log:", 11));
$zebraLabel->addElement(new ZebraText(180, 520, "0035", 11));
$zebraLabel->addElement(new ZebraText(10, 596, "Ref client:", 11));
$zebraLabel->addElement(new ZebraText(180, 599, "1234", 11));
//Add Image from Url
$zebraLabel->addElement(new ZebraImage(350, 850, $fakerImage));
//Add Qr Code
$zebraLabel->addElement(new ZebraQrCode(350, 297, 'test'));

echo $zebraLabel->getZplCode();
```

Native code
-----------

[](#native-code)

If you need to customise your label

```
$zebraLabel.addElement(new ZebraNativeZpl("^KD0\n"));
/*
You can also use usefull fonction ZplUtils.zplCommand to generate a zpl command (with many variables)
*/
ZplUtils::zplCommand("A", ["0", "R"]); //will return ^A,0,R
```

Zpl Viewver
-----------

[](#zpl-viewver)

> Written with [StackEdit](https://stackedit.io/).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance53

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 59.4% 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 ~204 days

Recently: every ~6 days

Total

9

Last Release

1957d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/159077?v=4)[Stephan de Souza](/maintainers/stephandesouza)[@stephandesouza](https://github.com/stephandesouza)

---

Top Contributors

[![teddy-dubal](https://avatars.githubusercontent.com/u/7427796?v=4)](https://github.com/teddy-dubal "teddy-dubal (19 commits)")[![stephandesouza](https://avatars.githubusercontent.com/u/159077?v=4)](https://github.com/stephandesouza "stephandesouza (12 commits)")[![manuelgomes2](https://avatars.githubusercontent.com/u/7493585?v=4)](https://github.com/manuelgomes2 "manuelgomes2 (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gblix-weez-zpl/health.svg)

```
[![Health](https://phpackages.com/badges/gblix-weez-zpl/health.svg)](https://phpackages.com/packages/gblix-weez-zpl)
```

PHPackages © 2026

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