You can create your QR Code using the PHP QR Code library. Download the QR Code library and include in your script file.
Example:-
<?php
include "phpqrcode/qrlib.php";
// create your QR Code with new text and display it
QRcode::png("Test QR Code");
Following are some parameters which are used to create a interactive QR code:
<?php
$backColor = 0xFFFF00;
$foreColor = 0xFF00FF;
// Create a QR Code and export to SVG
QRcode::png("http://domain-name.com", "test.png", "L", 4, 4, false, $backColor, $foreColor);
Parameter 1: Specifies the text or data which will be encoded into the image.
Parameter 2: Name of the output file if needed. The default value is boolean false.
Parameter 3: Level of error correction for the generated barcode. The higher the correction level, the less the data capacity of the barcode.
Parameter 4: The size of each of the barcode code squares measured in pixels.
Parameter 5: The white margin boundary around the barcode.
Parameter 6: It should be true for saving to a file and exporting to the browser. Default value is false.
Uses for QR Codes:
The use of QR codes is free of any license. QR Codes can be used for store telephone numbers, vCards, and email addresses, Website urls etc.
0 Comment(s)