Welcome back guys.In this tutorial I will explain you the simple way to Generate Barcode using PHP.
We are using here php-barcode library which is written by David Scott to generate Barcode using PHP. So first of all download the library from here. Download the library and add barcode.php file into your folder.
Now below are master stoke, which will generate Barcode using php.
<img src="barcode.php?codetype=Code39&size=40&text=91weblessons&print=true" alt="Sample Alt" />
- codetype:- It is a format for barcode. So you have formats like Code128, Code39, Code2of5, and Codabar.
- size:- Barcode size
- text:- Barcode text
- print:- is this barcode printable.