barcode-generator Simple class for Generating Barcodes

  1. Usage
  2. Sample
  3. Credits

Simple extension to generate barcode images conveniently.

Usage

Step 1: Put the barcode folder into your framework extensions directory.

Step 2: Use it as below when creating a barcode image.

//Widht of the barcode image. 
$width  = 284;  
//Height of the barcode image.
$height = 184;
//Quality of the barcode image. Only for JPEG.
$quality = 100;
//1 if text should appear below the barcode. Otherwise 0.
$text =1;
// Location of barcode image storage.
$location = Yii::getPathOfAlias("webroot").'/bc';

Yii::import("application.extensions.barcode.*");                      
barcode::Barcode39('some text', $width , $height , $quality, $text, $location);                      

Sample

sample barcode

Credits

Charles J. Scheffold - cs@sid6581.net

2 5
8 followers
1 779 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Developed by: Azy
Created on: Feb 6, 2013
Last updated: 11 years ago

Downloads

show all

Related Extensions