jensschulze / jbarc

A barcode library based on TCPDF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jbarc

Master: Build Status

Develop: Build Status

This barcode library is basically the barcode part of the TCPDF library by Nicola Ansuni. The main objective is to refactor, and then further improve it.

Barcode formats

  • EAN 13

Output formats

  • PNG
  • SVG

Font

OCR-B font from https://github.com/opensourcedesign/fonts

Example

$barcode = \Jbarc\Barcode\Factory::getBarcode('EAN13', '5901234123457');
$image = \Jbarc\Barcode\Factory::getRenderedImage($barcode, 'png', 2, 100);
file_put_contents(__DIR__ . '/testEan13.png', $image);

About

A barcode library based on TCPDF

License:Other


Languages

Language:PHP 100.0%