Yii 1.1: barcode-generator

Simple class for Generating Barcodes
11 followers

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

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads