Skip to content
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/
Branch: master
Clone or download
Pull request Compare This branch is 2 commits behind davidscotttufts:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
barcode.php

README.md

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

You can’t perform that action at this time.