Yii 1.1: barcodegenerator

This is an extension to generate a standard / traditional barcode (as images)
14 followers

This is an extension to generate a standard / traditional barcode (as images)

Requirements

  • Yii 1.1 or above (Tested on Yii 1.1)
  • PHP GD Lib

Usage

I've updated extension for simple use :

[1] Download 'barcodegenerator_v1_0_1.zip', extract and copy folder 'barcodegenerator' to your extensions folder (protected/extensions)

[2] In /protected/config/main.php :

'controllerMap' => array(
        // ...
        'barcodegenerator' => array(
            'class' => 'ext.barcodegenerator.BarcodeGeneratorController',
        ),
    ),

[3] Now You Can Call action of this extension like this (in browser, assume your yii apps folder is /sampleapps) :

Http: //localhost/sampleapps/barcodegenerator/generatebarcode?code=1234567890ABCDEF

[4] For further usage, you can attach on any html img tag :

<img src="http://localhost/sampleapps/barcodegenerator/generatebarcode?code=1234567890ABCDEF">

Total 9 comments

#17341 report it
Ahamed Rifaideen at 2014/05/27 01:10am
Superb

This was extension was really Superb. it is very helpful if you provide decoding facility of generated bar codes.

#14961 report it
sensorario at 2013/09/25 01:54am
Composer and Packagist

Can you add composer to this library?

#13902 report it
sirsimon at 2013/07/05 01:27am
Type

What type of code are you used

EDIT: It is Code 39: http://en.wikipedia.org/wiki/Code_39

#10618 report it
Tahir Yasin at 2012/11/08 07:14am
What is the encoding type of generated barcodes?

There is no info about the encoding scheme used by this extension, I think it's code39, please confirm.

Thanks

#10535 report it
alif at 2012/11/02 11:16pm
it's can work

[1] Download 'barcodegenerator_v1_0_1.zip', extract and copy folder 'barcodegenerator' to your extensions folder (protected/extensions)

[2] mv protected/extensions/barcodegenerator/BarcodeGeneratorController.php /protected/controllers/

[3] Edit BarcodeGeneratorController.php line class BarcodeGeneratorController extends CExtController to class BarcodeGeneratorController extends Controller

[4] In /protected/config/main.php :

**'components' => array(**
//....
'barcodegenerator' => array(
            'class' => 'ext.barcodegenerator.BarcodeGeneratorController',
        ),
),

[5] Now You Can Call action of this extension like this (in browser, assume your yii apps folder is /sampleapps) :

Http: //localhost/sampleapps/barcodegenerator/generatebarcode&code=1234567890ABCDEF

[6] For further usage, you can attach on any html img tag :

<img src="http://localhost/sampleapps/barcodegenerator/generatebarcode&code=1234567890ABCDEF">
  • 1234567890ABCDEF -> can be replaced by variable .
<img src="http://localhost/sampleapps/barcodegenerator/generatebarcode&code=<?php echo $_IDUSER; ?>">
#9815 report it
Roman Solomatin at 2012/09/12 08:29pm
Thank you

I have been looking for something like this.

#9673 report it
sirin k at 2012/09/03 01:52am
Can you provide a demo please?

Great work.Can you provide a demo please?

#9668 report it
144key at 2012/09/02 11:49am
check new update

Thanks for your feedback. I've updated extension (barcodegenerator_v1_0_1.zip) for simple use :D

#9667 report it
sensorario at 2012/09/02 09:35am
Example page

Can you provide a sample page?

Leave a comment

Please to leave your comment.

Create extension