Download the PHP package survos/zebra-bundle without Composer

On this page you can find all versions of the php package survos/zebra-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package zebra-bundle

Survos Zebra Bundle

Symfony bundle for Zebra ZPL preview and printing workflows.

Status

This bundle is small and focused: it previews Zebra ZPL through Labelary and sends print jobs through common server-side transports.

Current features:

BrowserPrint/client-side USB support is intentionally not part of the current server-side bundle surface.

Configuration

For USB-attached GK420d printers on Linux, prefer a CUPS queue that uses the CUPS USB backend, for example usb://Zebra/..., then print with type: cups. Avoid writing directly to /dev/usb/lp*; that path depends on usblp and can leave transport and interpreter failures hard to distinguish. See docs/gk420d-reliable-printing.md.

The print service automatically prepends the ZPL interpreter guard:

It also wraps each label with the configured media dimensions:

Do not rely on printer-stored defaults for print width or label length. A GK420d defaults to a 4 inch print width, so narrower stock can produce blank or partial labels when content lands outside the physical media. Configure each printer profile with dpi, label_width_in, and label_height_in; the bundle converts inches to dots with:

Common 203 dpi sizes:

Label size ^PW ^LL
2.25 x 1.25 in 457 254
2.25 x 1 in 457 203
4 x 6 in 812 1218
4 x 2 in 812 406
3 x 1 in 609 203

PrinterServiceInterface::testLabel() prints a small known-good label using the configured dimensions. calibrate() sends ^XA^JC^XZ for new media. saveSettings() persists ^PW and ^LL with ^JUS, but should be treated as an advanced single-printer setup command; normal jobs remain explicit per print.

Twig Usage

Named label sizes are also supported:

If symfony/ux-twig-component is installed, the bundle also registers:

You can override the configured default size per component render:

Verification

This repository includes a dependency-light smoke test for the bundle primitives:


All versions of zebra-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
psr/cache Version ^3.0
psr/log Version ^3.0
symfony/cache Version ^7.4||^8.0
symfony/config Version ^7.4||^8.0
symfony/dependency-injection Version ^7.4||^8.0
symfony/framework-bundle Version ^7.4||^8.0
symfony/http-client Version ^7.4||^8.0
symfony/http-kernel Version ^7.4||^8.0
symfony/twig-bundle Version ^7.4||^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package survos/zebra-bundle contains the following files

Loading the files please wait ...