fobiaweb/barcode39 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

fobiaweb/barcode39

最新稳定版本:v1.2

Composer 安装命令:

composer require fobiaweb/barcode39

包简介

Code 39 Barcode Image Generator

README 文档

README

Here is an easy to use PHP barcode generator class for code 39 barcodes.

PHP Barcode Generator Class Code 39

Installation

This package can be installed easily using Composer. Simply add the following to the composer.json file at the root of your project:

{
  "require": {
    "fobiaweb/barcode39": "*"
  }
}

Then install your dependencies using composer.phar install.

Requirements:

PHP Web server and GD Library (Graphics Library).

Documentation

The PHP class will create a GIF barcode image or save a GIF barcode image file, here is an example:

// include Barcode39 class 
include "Barcode39.php"; 

// set Barcode39 object 
$bc = new Barcode39("Shay Anderson"); 

// display new barcode 
$bc->draw();

This example will output this barcode:

barcode39

You can also easily adjust the barcode bar sizes and text size:

// set object 
$bc = new Barcode39("123-ABC"); 

// set text size 
$bc->barcode_text_size = 5; 

// set barcode bar thickness (thick bars) 
$bc->barcode_bar_thick = 4; 

// set barcode bar thickness (thin bars) 
$bc->barcode_bar_thin = 2; 

// save barcode GIF file 
$bc->draw("barcode.gif");

This example will save this barcode as "barcode.gif":

barcode39

统计信息

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

GitHub 信息

  • Stars: 15
  • Watchers: 4
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-05-08