定制 robgridley/zebra 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

robgridley/zebra

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.87M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 226
  • 点击次数: 16
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 226
  • Watchers: 26
  • Forks: 55
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固