承接 robgridley/zebra 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

robgridley/zebra

最新稳定版本:v2.0.2

Composer 安装命令:

composer require robgridley/zebra

包简介

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

README 文档

README

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

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

$ composer require robgridley/zebra

统计信息

  • 总下载量: 1.58M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 224
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 224
  • Watchers: 27
  • Forks: 55
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-05