Demonstration - QRCode

Capable of containing virtually any data desired.
Popular for its use in mobile tagging and data sharing.
Can contain large amounts of data and can be spread throughout multiple barcodes.
Micro and Standard versions can be used to vary the size of the barcode.
* 30 character limit for this demo.

<?php
use BarcodeBakery\Common\BCGColor;
use BarcodeBakery\Common\BCGDrawing;
use BarcodeBakery\Barcode\BCGqrcode;

$colorFront = new BCGColor(0, 0, 0);
$colorBack = new BCGColor(255, 255, 255);

// Barcode Part
$code = new BCGqrcode();
$code->setScale(3);
$code->setForegroundColor($colorFront);
$code->setBackgroundColor($colorBack);
$code->setErrorLevel(1);
$code->parse('QRCode');

// Drawing Part
$drawing = new BCGDrawing('', $colorBack);
$drawing->setBarcode($code);
$drawing->draw();

header('Content-Type: image/png');

$drawing->finish(BCGDrawing::IMG_FORMAT_PNG);
?>