: This article describes how to use PHP-Barcode to easily generate a bar code (1). For more information about PHP tutorials, see. Recently, due to work needs, I have studied how PHP generates a bar code. Although QR codes are popular nowadays, they are still widely used and cannot be replaced. There are many articles in the garden that use PHP to generate bar code, basically around Barcode Bakery. although it is powerful, its commercial support is not friendly, and the download of source code is limited to study and research. To avoid legal issues, we recommend a free open-source class library today. PHP-Barcode has good commercial support and is sufficient for general application functions. In addition, the official website provides online examples to experience its powerful functions. Click here to download the latest version from the official website.
After downloading it, run it first. The following figure shows my configuration:
1) decompress the downloaded package
2) move all the extracted files to the root directory of the website (~ /Projects/test-barcode.com /)
3) open all the PHP files and modify the PHP declaration label. Set Modify
4) visit the virtual site, http: // localhost: 8090/barcode. php, and you will be able to see the bar code.
For more details, I will take the time to update them ~~
The above describes how to use PHP-Barcode to easily generate a bar code (1), including some content, and hope to help those who are interested in the PHP Tutorial.