PHP code example of gggeek / barcodepack
1. Go to this page and download the library: Download gggeek/barcodepack 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/ */
gggeek / barcodepack example snippets
// Include the QR Code classes via Composer
BarcodePack\qrCode('Hello World!', 5);
// We will outputting a PNG image
header('Content-type: image/png');
// Call draw method and output image
imagepng($qr->draw());