kargirwar/barcoder

v1.2 2018-06-09 00:19 UTC

This package is not auto-updated.

Last update: 2024-09-24 04:17:48 UTC


README

一个用于创建ASCII字符串条形码表示的实用工具。目前仅支持Code 128。实用工具仅返回编码数据字符串。条形码的实际渲染留给客户端。提供了绘制条形码到PDF的示例。

依赖关系

php 7+

安装

composer require kargirwar/barcoder

使用

require("vendor/autoload.php");
use \Kargirwar\Barcoder\Barcoder;
print_r(Barcoder::encode(Barcoder::CODE_128_C, "1234"));

许可 MIT。