<?php
require 'vendor/autoload.php'; // Include Composer's autoload file

use Picqer\Barcode\BarcodeGeneratorPNG;

// Create a new instance of the barcode generator
$generator = new BarcodeGeneratorPNG();

// Generate an ITF-14 barcode
$barcode = $generator->getBarcode('123456789012', $generator::TYPE_ITF14);

// Output the barcode image
header('Content-Type: image/png');
echo $barcode;
