PHP QrCode Liblary  2.0
 All Classes Functions Variables Groups Pages
Global Constants

Constant used globally for function arguments. More...

QR-Code Encoding Modes

const QR_MODE_NUL -1
 null encoding, used when no encoding was speciffied yet
 
const QR_MODE_NUM 0
 Numerical encoding, only numbers (0-9)
 
const QR_MODE_AN 1
 AlphaNumerical encoding, numbers (0-9) uppercase text (A-Z) and few special characters (space, $, %, *, +, -, ., /, :)
 
const QR_MODE_8 2
 8-bit encoding, raw 8 bit encoding
 
const QR_MODE_KANJI 3
 Kanji encoding.
 
const QR_MODE_STRUCTURE 4
 Structure, internal encoding for structure-related data.
 

QR-Code Levels of Error Correction

Constants speciffy ECC level from lowest L to the highest H.

Higher levels are recomended for Outdoor-presented codes, but generates bigger codes.

const QR_ECLEVEL_L 0
 ~7% of codewords can be restored
 
const QR_ECLEVEL_M 1
 ~15% of codewords can be restored
 
const QR_ECLEVEL_Q 2
 ~25% of codewords can be restored
 
const QR_ECLEVEL_H 3
 ~30% of codewords can be restored
 

QR-Code Supported output formats

const QR_FORMAT_TEXT 0
 
const QR_FORMAT_PNG 1
 

Detailed Description

Constant used globally for function arguments.

Make PHP calls a little bit more clear, in place of missing (in dynamicaly typed language) enum types.