...overview of the extension...
Requirements ¶
Yii 2.0 or above
Installation ¶
Tested on Yii 2.0.3, basic app The preferred way to install this extension is through composer.
Either run On windows just "composer" $ php composer.phar vilochane/yii2-barcode-generator:dev-master
or add
"vilochane/yii2-barcode-generator": "dev-master" to the require section of your composer.json file.
Description ¶
This documentation will be updated soon. for the moment rough documentation. This extension based on "Simple jQuery Based Barcode Generator" Wrapper for BarCode Coder Library (BCC Library Version 2.0) by DEMONTE Jean-Baptiste, HOUREZ Jonathan. Licence : GPL / Cecill. Web site
Output formats supported: ¶
CSS, BMP (not usable in IE), Canvas (not usable in IE).
Usage ¶
- Intializing on simply
<html><div id="showBarcode"></div></html> <!--This element id should be passed on to options-->
use barcode\barcode\BarcodeGenerator as BarcodeGenerator;
$optionsArray = array(
'elementId'=> 'showBarcode', /* div or canvas id*/
'value'=> '4797001018719', /* value for EAN 13 be careful to set right values for each barcode type */
'type'=>'ean13',/*supported types ean8, ean13, upc, std25, int25, code11, code39, code93, code128, codabar, msi, datamatrix*/
);
echo BarcodeGenerator::widget($optionsArray);
Resources ¶
Package Try out a demo GitHub Yii 1.1: yii-barcode-generator-8-types
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.