Starting from $ 4.99
A QR code image generator class. Generate QR codes and use them in a variety of ways:
gQRcode is a QR code rendering class that uses the Google Charts API.
Include the class in your script and use setter methods to define QR code attributes. The class uses dynamic setters via the magic __call() function so you can set any custom attributes you want.
Example - generating a QR code image with contact information:
// Include the library require('gQRcode.php'); // Instance of the QR code class $gQRcode = new gQRcode(); // Add the contact information using setters $gQRcode->name("Name Example") ->company("NameCompany") ->phone("123456") ->email("email@example.com") ->address("bla blabla") ->AllThatYouWant("Hello World"); // and embed the QR code in the page as a simple HTML img echo $gQRcode->embed();
Function: The first two function are very simple: embed() that you can see above, and embed64() that work as embed(), but return a base64 encoded string that you can embed in HTML instead of a regular image. For more info see: http://en.wikipedia.org/wiki/Data_URI_scheme
public function getLink( $size = 150 )
public function saveImage( $name, $size = 150 )
public function downloadImage( $name )
public function applyWatermark( $name_image, $name_watermark, $name_newImg, $with = 30, $height = 30)
<?php require('gQRcode.php'); $gQRcode = new gQRcode(); $gQRcode->text("Hello world!") ->phone("1234567") ->email("firstname.lastname@example.org"); $gQRcode->saveImage("qrcodeimg.png", 250); $gQRcode->applyWatermark( "qrcodeimg.png", "html5.png", "imgwithwatermark.png", 40, 40 ) ->embedfCache("imgwithwatermark.png");
public function embedfCache( $name )
This is exactly what I was looking for and exactly what I needed. Although I rated the documentation as a 3-star it was because of my lack of familiarity with some of the php constructs. I did have the function up and running exactly as I wanted in less than 5 minutes.- Gerry Williams, 5 months ago