ESH/bar_code
2024-10-23 18:28:06 +05:30
..
barcode.php first commit 2024-10-23 18:28:06 +05:30
LICENSE first commit 2024-10-23 18:28:06 +05:30
README.md first commit 2024-10-23 18:28:06 +05:30

php-barcode

Source code for the article "How To Create Barcodes in PHP" found at: http://davidscotttufts.com/2009/03/31/how-to-create-barcodes-in-php/

This script that generates barcodes in four barcode formats including Code 128, Code 39, Code 2of5, and Codabar. With a little over 100 lines of code you have the options of “vertical” or “horizontal” display, varying barcode heights, and one of four barcode formats. It does require the GD Library to be installed as a module in PHP.

Usage: <img alt="testing" src="barcode.php?text=testing" />

Result: testing