LEVEL_LOW
LEVEL_LOW = 1
Generate QR Code.
setStructureAppend(integer $n, integer $m, integer $parity, string $original_data) : \Endroid\QrCode\QrCode
Set structure append.
integer | $n | |
integer | $m | |
integer | $parity | Parity |
string | $original_data | Original data |
setVersion(integer $version) : \Endroid\QrCode\QrCode
Set QR Code version.
integer | $version | QR Code version |
setErrorCorrection(mixed $error_correction) : \Endroid\QrCode\QrCode
Set QR Code error correction level.
mixed | $error_correction | Error Correction Level |
setModuleSize(integer $module_size) : \Endroid\QrCode\QrCode
Set QR Code module size.
integer | $module_size | Module size |
setImageType(string $image_type) : \Endroid\QrCode\QrCode
Set image type for rendering.
string | $image_type | Image type |
setExtension(string $extension) : \Endroid\QrCode\QrCode
Set image type for rendering via extension.
string | $extension | Image extension |
setImagePath(string $image_path) : \Endroid\QrCode\QrCode
Set path to the images directory.
string | $image_path | Image directory |
setPath(string $path) : \Endroid\QrCode\QrCode
Set path to the data directory.
string | $path | Data directory |
setLogo(string $logo) : \Endroid\QrCode\QrCode
Set logo in QR Code.
string | $logo | Logo Path |
setLogoSize(integer $logo_size) : \Endroid\QrCode\QrCode
Set logo size in QR Code(default 48).
integer | $logo_size | Logo Size |
setText(string $text) : \Endroid\QrCode\QrCode
Set text to hide in QR Code.
string | $text | Text to hide |
setSize(integer $size) : \Endroid\QrCode\QrCode
Set QR Code size (width).
integer | $size | Width of the QR Code |
setPadding(integer $padding) : \Endroid\QrCode\QrCode
Set padding around the QR Code.
integer | $padding | Padding around QR Code |
setDrawQuietZone(boolean $draw_quiet_zone) : \Endroid\QrCode\QrCode
Set draw required four-module wide margin.
boolean | $draw_quiet_zone | State of required four-module wide margin drawing |
setDrawBorder(boolean $draw_border) : \Endroid\QrCode\QrCode
Set draw border around QR Code.
boolean | $draw_border | State of border drawing |
setLabel(integer|string $label) : \Endroid\QrCode\QrCode
Set QR Code label (text).
integer|string | $label | Label to print under QR code |
setLabelFontSize(integer $label_font_size) : \Endroid\QrCode\QrCode
Set QR Code label font size.
integer | $label_font_size | Font size of the QR code label |
setLabelFontPath(integer $label_font_path) : \Endroid\QrCode\QrCode
Set QR Code label font path.
integer | $label_font_path | Path to the QR Code label's TTF font file |
setLabelHalign(integer $label_halign) : \Endroid\QrCode\QrCode
Set label horizontal alignment.
integer | $label_halign | Label horizontal alignment |
setLabelValign(integer $label_valign) : \Endroid\QrCode\QrCode
Set label vertical alignment.
integer | $label_valign | Label vertical alignment |
setForegroundColor(array $color_foreground) : \Endroid\QrCode\QrCode
Set foreground color of the QR Code.
array | $color_foreground | RGB color |
setBackgroundColor(array $color_background) : \Endroid\QrCode\QrCode
Set background color of the QR Code.
array | $color_background | RGB color |
save(string $filename) : \Endroid\QrCode\QrCode
Render the QR Code then save it to given file name.
string | $filename | File name of the QR Code |
render(null|string $filename = null, null|string $format = 'png') : \Endroid\QrCode\QrCode
Render the QR Code then save it to given file name or output it to the browser when file name omitted.
null|string | $filename | File name of the QR Code |
null|string | $format | Format of the file (png, jpeg, jpg, gif, wbmp) |