プロジェクト
GitHubで見る
robgridley/zebra
概要
PHP ZPL の生成、画像変換、およびネットワーク接続された Zebra ラベルプリンター用の基本的なクライアントを提供します。
システム・インフラ計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル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
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
関連プロジェクトを探す
読み込み中…