2017 © Pedro Peláez
 

library php-barcode

Barcode Generation Package inspired by Nicola Asuni.

image

jucksearm/php-barcode

Barcode Generation Package inspired by Nicola Asuni.

  • Monday, June 5, 2017
  • by jucksearm
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,111 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 11 % Grown

The README.md

Packagist Downloads Stable version License, (*1)

This is a barcode generation package inspired by Nicola Asuni. Actually I use that package's underline classes for generating barcode. This package is just a wrapper of that package and adds compatibility with PHP >= 5.4, (*2)

I used the following classes of that package., (*3)

Read More on TCPDF website, (*4)

Support

Barcode generator like QRCode, PDF417, Datamatrix, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A,C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code) generator in HTML, PNG and SVG., (*5)

This package is compatible with PHP >= 5.4

This package require php-gd extension. So, make sure it is installed on your machine., (*6)

Installation

Begin by installing this package through Composer. Just run following command to terminal:, (*7)

composer require jucksearm/php-barcode

You can also edit your project's composer.json file to require jucksearm/php-barcode., (*8)

"require": {
    ...
    "jucksearm/php-barcode": "^1.0"
}

Next, update Composer from the terminal:, (*9)

composer update

How to Use Basic

use jucksearm\barcode\Barcode;

Barcode::html('https://github.com/jucksearm/php-barcode', 'C128');

How to Use Advance

use jucksearm\barcode\Barcode;

Barcode::factory()
  ->setCode('https://github.com/jucksearm/php-barcode')
  ->setType('C128')
  ->setScale(null)
  ->setHeight(null)
  ->setRotate(null)
  ->setColor(null)
  ->renderHTML();

See More Examples, (*10)

Barcode Option

Barcode::html($code, $type, $scale = null, $height = null, $rotate = null, $color = null)

Barcode::png($code, $type, $file= null, $scale = null, $height = null, $rotate = null, $color = null)

Barcode::svg($code, $type, $file= null, $scale = null, $height = null, $rotate = null, $color = null)
$type    C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, EAN2, EAN5, EAN8, EAN13, UPCA, UPCE, MSI, MSI+, POSTNET, PLANET, RMS4CC, KIX, IMB, CODABAR, CODE11, PHARMA, PHARMA2T
$file    Barcode save filename [default: `null`]
$scale   Barcode unit size in `px` units [default: `1`]
$height  Barcode height in `px` units [default: `30`]
$rotate  Support 0, 90 in `degrees` units [default: `0`]
$color   Support in `hexadecimal` color units [default: `000`]

QRcode Option

QRcode::html($code, $emblem = null, $level = null, $size = null, $margin = null, $color = null)

QRcode::png($code, $emblem = null, $file = null, $level = null, $size = null, $margin = null, $color = null)

QRcode::svg($code, $emblem = null, $file = null, $level = null, $size = null, $margin = null, $color = null)
$emblem  Insert mask Logo [default: `null`]
$file    QRcode save filename [default: `null`]
$level   QRcode level L,M,Q,H [default: `L`]
$size    QRcode width and height size in `px` units [default: `100`]
$margin  QRcode empty space in `percentage` units [default: `1`]
$color   Support in `hexadecimal` color units [default: `000`]

Datamatrix Option

Datamatrix::html($code, $size = null, $margin = null, $color = null)

Datamatrix::png($code, $file = null, $size = null, $margin = null, $color = null)

Datamatrix::svg($code, $file = null, $size = null, $margin = null, $color = null)
$file    Datamatrix save filename [default: `null`]
$size    Datamatrix width and height size in `px` units [default: `100`]
$margin  Datamatrix empty space in `percentage` units [default: `1`]
$color   Support in `hexadecimal` color units [default: `000`]

PDF417 Option

PDF417::html($code, $size = null, $margin = null, $color = null)

PDF417::png($code, $file = null, $size = null, $margin = null, $color = null)

PDF417::svg($code, $file = null, $size = null, $margin = null, $color = null)
$file    PDF417 save filename [default: `null`]
$size    PDF417 width and height size in `px` units [default: `100`]
$margin  PDF417 empty space in `percentage` units [default: `1`]
$color   Support in `hexadecimal` color units [default: `000`]

License

This package is published under GNU LGPLv3 license and copyright to Jucksearm Boonmor. Original Barcode generation classes were written by Nicola Asuni. The license agreement is on project's root., (*11)

License: GNU LGPLv3 * Original Package Nicola Asuni https://github.com/tecnickcom/TCPDF * Link http://www.tcpdf.org * Package Copyright Jucksearm Boonmor jucksearm.bkk@gmail.com, (*12)

The Versions

05/06 2017

dev-master

9999999-dev

Barcode Generation Package inspired by Nicola Asuni.

  Sources   Download

LGPLv3

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar jucksearm

qrcode barcode qr code datamatrix pdf417 code 128 php barcode

05/06 2017

1.0.0

1.0.0.0

Barcode Generation Package inspired by Nicola Asuni.

  Sources   Download

LGPLv3

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar jucksearm

qrcode barcode qr code datamatrix pdf417 code 128 php barcode

05/06 2017

1.0.1

1.0.1.0

Barcode Generation Package inspired by Nicola Asuni.

  Sources   Download

LGPLv3

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar jucksearm

qrcode barcode qr code datamatrix pdf417 code 128 php barcode