1. Go to this page and download the library: Download donatello/php-barcode 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/ */
donatello / php-barcode example snippets
use jucksearm\barcode\Barcode;
Barcode::html('https://github.com/jucksearm/php-barcode', 'C128');
use jucksearm\barcode\Barcode;
Barcode::factory()
->setCode('https://github.com/jucksearm/php-barcode')
->setType('C128')
->setScale(null)
->setHeight(null)
->setRotate(null)
->setColor(null)
->renderHTML();
$emblem Insert mask Logo [default: `null`]
$file QRcode save filename [default: `null`]
$level QRcode level L,M,Q,H [default: `L`]
$size QRcode width and height size in `px` units [default: `100`]
$margin QRcode empty space in `percentage` units [default: `1`]
$color Support in `hexadecimal` color units [default: `000`]
$file Datamatrix save filename [default: `null`]
$size Datamatrix width and height size in `px` units [default: `100`]
$margin Datamatrix empty space in `percentage` units [default: `1`]
$color Support in `hexadecimal` color units [default: `000`]
$file PDF417 save filename [default: `null`]
$size PDF417 width and height size in `px` units [default: `100`]
$margin PDF417 empty space in `percentage` units [default: `1`]
$color Support in `hexadecimal` color units [default: `000`]
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.