1. Go to this page and download the library: Download p-ba/php-barcode-generator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
p-ba / php-barcode-generator example snippets
$generator = new PBA\Barcode\BarcodeGeneratorHTML();
echo $generator->getBarcode('081231723897', $generator::TYPE_CODE_128);
$generatorSVG = new PBA\Barcode\BarcodeGeneratorSVG();
$generatorPNG = new PBA\Barcode\BarcodeGeneratorPNG();
$generatorJPG = new PBA\Barcode\BarcodeGeneratorJPG();
$generatorHTML = new PBA\Barcode\BarcodeGeneratorHTML();