Advertisement

How to Make Function Barcode in PHP


Barcode is the encryption of a data that is converted in the form of parallel lines with different thicknesses and distances
Barcodes are used as labels for a product that will make it easier to find data by the cashier using a scanner. The scanner will describe the barcode in the form of original data in the form of text
This library is very useful for those of you who want to develop an application that involves transactions in it, for example cashier applications, library applications and so on


The first download file vendor here ..

and make php file for function


 <?php  
 require "vendor/autoload.php";  
 function barcode($text){  
 $Bar = new Picqer\Barcode\BarcodeGeneratorHTML();  
 $code = $Bar->getBarcode($text, $Bar::TYPE_CODE_128);  
 return $code;  
 }  
 ?>  

and for use the function is
  echo barcode('some text')  

Post a Comment

0 Comments