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.
<?php
use BarcodeBakery\Common\BCGColor;
use BarcodeBakery\Common\BCGDrawing;
use BarcodeBakery\Barcode\BCGqrcode;
$colorBlack = new BCGColor(0, 0, 0);
$colorWhite = new BCGColor(255, 255, 255);
// Barcode Part
$code = new BCGqrcode();
$code->setScale(3);
$code->setForegroundColor($colorBlack);
$code->setBackgroundColor($colorWhite);
$code->setErrorLevel(1);
$code->parse('QRCode');
// Drawing Part
$drawing = new BCGDrawing($code, $colorWhite);
header('Content-Type: image/png');
$drawing->finish(BCGDrawing::IMG_FORMAT_PNG);
?>