github-avatar

Luke's Digital Garage






phpbarcode - the simple barcode renderer for php

Started: March, 2015
Status: on hold

Often times the best solution for a particular problem is also the most simple solution. That's what phpbarcode offers first and foremost: simplicity. For those users that require more flexibility, phpbarcode offers several areas of customization including various encoding mechanisms and rendering implementations.

Example Usage:

/// render a single barcode to a dynamic image using the code-128 encoder
/// the code below will output the same barcode as depicted in the phpbarcode logo
$text = 'phpbarcode';
$encoder = new com\github\lukeleber\phpbarcode\detail\Code128();
$encoding = implode($encoder->encode($text), '');
echo "<img src=\"render.php?encoding=" . $encoding\">";