承接 jfilla/php-barcode-generator 相关项目开发

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

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

jfilla/php-barcode-generator

最新稳定版本:1.0.1

Composer 安装命令:

composer require jfilla/php-barcode-generator

包简介

An easy to use, non-bloated, barcode generator in PHP. Creates SVG, PNG, JPG and HTML images from the most used 1D barcode standards.

README 文档

README

This is an easy to use, non-bloated, framework independent, barcode generator in PHP.

It creates PNG from the most used 1D barcode standards.

Prerequisities

  • GD Library installed

Installation

Install through composer:

composer require jfilla/php-barcode-generator

Usage

Initiate the barcode generator for the output you want, then call the ->getBarcode() routine as many times as you want.

$generator = new Picqer\Barcode\BarcodeGeneratorPNG();
echo $generator->getBarcode('081231723897', $generator::TYPE_CODE_128);

The ->getBarcode() routine accepts the following:

  • $code Data for the barcode
  • $type Type of barcode, use the constants defined in the class
  • $widthFactor Width is based on the length of the data, with this factor you can make the barcode bars wider than default
  • $totalHeight The total height of the barcode
  • $color Hex code of the foreground color
  • $showCode Display barcode content as text

统计信息

  • 总下载量: 7.2k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2017-06-08