PHP extension for reading barcodes. Uses ImageMagick( for image support and zbar( for scanning the barcodes.
Switch branches/tags
Nothing to show
Clone or download

Simple extension to read barcodes from images

Basic usage:

/* Create new image object */
$image = new ZBarCodeImage("test.jpg");

/* Create a barcode scanner */
$scanner = new ZBarCodeScanner();

/* Scan the image */
$barcode = $scanner->scan($image);

/* Loop through possible barcodes */
if (!empty($barcode)) {
	foreach ($barcode as $code) {
		printf("Found type %s barcode with data %s\n", $code['type'], $code['data']);

The EAN13 image in the tests/ directory is from