lorenzofaresin/twig-barcode 问题修复 & 功能扩展

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

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

lorenzofaresin/twig-barcode

Composer 安装命令:

composer require lorenzofaresin/twig-barcode

包简介

Symfony Bundle to generate barcodes within Twig

README 文档

README

Generate barcodes within twig

Installation

Install through composer:

composer require alpin11/twig-barcode

If you want to generate PNG or JPG images, you need the GD library or Imagick installed on your system as well.

Usage

Simply use it like any other Twig function:

barcode_html_ean13(theBarcodeValue, widthFactor = 2, totalHeight = 30)

Options

Width Factor

With that option you can manipulate the width of the barcode. Default is 2. That means, the generated width of the barcode will be multiplied with you width factor.

Total Height

With that option you can set the height of the generated barcode. The default is value is 30

Supported Formats

HTML

barcode_html_*

SVG

barcode_svg_*

PNG

barcode_png_*

JPG

barcode_jpg_*

Supported Types

Type Twig Function
TYPE_CODE_39 barcode_*_c39
TYPE_CODE_39_CHECKSUM barcode_*_c39_plus
TYPE_CODE_39E barcode_*_c39e
TYPE_CODE_39E_CHECKSUM barcode_*_c39e_plus
TYPE_CODE_93 barcode_*_c93
TYPE_STANDARD_2_5 barcode_*_s25
TYPE_STANDARD_2_5_CHECKSUM barcode_*_s25_plus
TYPE_INTERLEAVED_2_5 barcode_*_i25
TYPE_INTERLEAVED_2_5_CHECKSUM barcode_*_i25_plus

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-02-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固