Demonstration - Aztec

Capable of containing large amounts of data in a variety or characters.
Can be used in both Compact and Full versions.
Supports the use of Extended Channel Interpretation (ECI).
* 30 character limit for this demo.

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

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

// Barcode Part
$code = new BCGaztec();
$code->setScale(3);
$code->setForegroundColor($colorFront);
$code->setBackgroundColor($colorBack);
$code->setErrorLevel(23);
$code->parse('Aztec');

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

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

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