class BarcodeHelper


Located at : UKNOWVA_ROOT/libraries/conv/barcode.php

uKnowvaBarcode is a utility functions class to generate machine readable codes like barcode / QR codes

Methods

boolean
barcode39(string $barcode, int $width = null, int $height = 80, int $quality = 100, string $format = 'PNG', string $text = true)

function for implementing Barcode

outputImage(file $im, string $format, int $quality)

output an image to the browser

code39(string $Asc)

Returns the Code 3 of 9 value for a given ASCII character

Details

at line 29
boolean barcode39(string $barcode, int $width = null, int $height = 80, int $quality = 100, string $format = 'PNG', string $text = true)

function for implementing Barcode

Parameters

string $barcode
int $width width of barcode, default = NULL
int $height height of barcode, default = 80
int $quality quality of barcode, default = 100
string $format takes file format, default = PNG
string $text text after barcode

Return Value

boolean output image which is passed to outputImage function for displaying

at line 128
outputImage(file $im, string $format, int $quality)

output an image to the browser

Parameters

file $im takes input from barcode39 function
string $format format of file which is passed from barcode39 function
int $quality quality of barcode to display in browser

at line 146
code39(string $Asc)

Returns the Code 3 of 9 value for a given ASCII character

Parameters

string $Asc takes any alphabet or symbols which is used for barcode conversion