Your support helps keep this website running. Please consider making a donation.
DONATE- class
QRcode
Class to create QR-code arrays for TCPDF class.
QR Code symbol is a 2D barcode that can be scanned by handy terminals such as a mobile phone with CCD.
The capacity of QR Code is up to 7000 digits or 4000 characters, and has high robustness.
This class supports QR Code model 2, described in JIS (Japanese Industrial Standards) X0510:2004 or ISO/IEC 18004.
Currently the following features are not supported: ECI and FNC1 mode, Micro QR Code, QR Code model 1, Structured mode.
This class is derived from "PHP QR Code encoder" by Dominik Dzienia (http://phpqrcode.sourceforge.net/) based on "libqrencode C library 3.1.1." by Kentaro Fukuchi (http://megaui.net/fukuchi/works/qrencode/index.en.html), contains Reed-Solomon code written by Phil Karn, KA9Q. QR Code is registered trademark of DENSO WAVE INCORPORATED (http://www.denso-wave.com/qrcode/index-e.html).
Please read comments on this class source file for full copyright and license information.
- author
- version
- 1.0.010
Table of Contents
Methods
- __construct()
: mixed
- This is the class constructor.
- getBarcodeArray()
: array<string|int, mixed>
- Returns a barcode array which is readable by TCPDF
__construct()
This is the class constructor.
public
__construct(string $code[, string $eclevel = 'L' ]) : mixedParameters
- $code
: string
code to represent using QRcode
- $eclevel
: string
= 'L'
error level:
- L : About 7% or less errors can be corrected.
- M : About 15% or less errors can be corrected.
- Q : About 25% or less errors can be corrected.
- H : About 30% or less errors can be corrected.
- public
- since
- 1.0.000
getBarcodeArray()
Returns a barcode array which is readable by TCPDF
public
getBarcodeArray() : array<string|int, mixed>- public
Return values
array<string|int, mixed>
—barcode array readable by TCPDF;