QR Code Generator – Source Code

Here is the PHP source code to generate a sample QR code using PHP QR Code. This example renders a PNG graphic directly to the web client.


include "qrlib.php";

$data = "http://www.gizmoplex.com";
$ecLevel = QR_ECLEVEL_L;
$codeSquareSize = 4;
$boundarySize = 1;

QRcode::png($text = $data, $outfile = False, $level = $ecLevel, $size = $codeSquareSize, $margin = $boundarySize);


Leave a Reply

Your email address will not be published. Required fields are marked *