\QRCode
QRCode class - Generate QR Codes. What did you expect?
Synopsis
class QRCode
{
- // members
- private $data;
- private $options;
- private array $qr_capacity = ;
- private array $qr_ec_params = ;
- private array $qr_ec_polynomials = ;
- private array $qr_log = ;
- private array $qr_exp = ;
- private array $qr_remainder_bits = ;
- private array $qr_alignment_patterns = ;
- private array $qr_format_info = ;
- private array $qr_version_info = ;
- // methods
- public void __construct()
- public void output_image()
- public resource|false render_image()
- private void encode_and_calculate_size()
- private void allocate_color()
- private void dispatch_encode()
- private void calculate_size()
- private void qr_encode()
- private void qr_encode_data()
- private void qr_detect_mode()
- private void qr_detect_version()
- private void qr_encode_numeric()
- private void qr_encode_alphanumeric()
- private void qr_encode_binary()
- private void qr_encode_kanji()
- private void qr_encode_ec()
- private void qr_ec_split()
- private void qr_ec_divide()
- private void qr_ec_interleave()
- private void qr_create_matrix()
- private void qr_apply_best_mask()
- private void qr_apply_mask()
- private void qr_mask()
- private void qr_penalty()
- private void qr_penalty_1()
- private void qr_penalty_2()
- private void qr_penalty_3()
- private void qr_penalty_4()
- private void qr_finalize_matrix()
Members
private
- $data
—
mixed
Data to render - $options
—
array
QR Rendering options: - $qr_alignment_patterns
- $qr_capacity
- $qr_ec_params
- $qr_ec_polynomials
- $qr_exp
- $qr_format_info
- $qr_log
- $qr_remainder_bits
- $qr_version_info
Methods
private
- allocate_color()
- calculate_size()
- dispatch_encode()
- encode_and_calculate_size()
- qr_apply_best_mask()
- qr_apply_mask()
- qr_create_matrix()
- qr_detect_mode()
- qr_detect_version()
- qr_ec_divide()
- qr_ec_interleave()
- qr_ec_split()
- qr_encode()
- qr_encode_alphanumeric()
- qr_encode_binary()
- qr_encode_data()
- qr_encode_ec()
- qr_encode_kanji()
- qr_encode_numeric()
- qr_finalize_matrix()
- qr_mask()
- qr_penalty()
- qr_penalty_1()
- qr_penalty_2()
- qr_penalty_3()
- qr_penalty_4()
public
- __construct()
- output_image() — Outputs the generated QR code image.
- render_image() — Renders and returns an image based on the encoded data and options.