PHP Classes

QR Code Generate: Generate QRCode images using Google Charts API

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-06-02 (4 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 1,085 All time: 3,433 This week: 108Up
Version License PHP version Categories
php-qrcode-generator 1.11GNU General Publi...5.2PHP 5, Graphics, Web services
Description 

Author

This class can generate QRCode images using Google Charts API.

It can take as arguments many types of parameters of user contact details.

The class generates a string that includes parameters to pass to Google Charts API to generate an image of a QRCode.

It can return the generated Google Charts API URL or return HTML to display the QRCode image.

Recommendations

QR Code point to URL
I need a QR Code that points to a URL when scanned.

What is the best PHP qr code link generator class?
How to generate QR code for links to Website

Recommendation for a PHP class to perform qr code payments
Generate a QR code to make payments by entering the code

Picture of Pierre-Henry Soria
  Performance   Level  
Name: Pierre-Henry Soria <contact>
Classes: 43 packages by
Country: United Kingdom
Age: 32
All time rank: 39016 in United Kingdom
Week rank: 2 Up1 in United Kingdom Up
Innovation award
Innovation award
Nominee: 16x

Winner: 3x

Example

<?php
/**
 * @title QR Code Example
 *
 * @author Pierre-Henry Soria <ph7software@gmail.com>
 * @copyright (c) 2012-2017, Pierre-Henry Soria. All Rights Reserved.
 * @license GNU General Public License <http://www.gnu.org/licenses/gpl.html>
 */

require 'QRCode.class.php'; // Include the QRCode class

try {
   
/**
     * If you have PHP 5.4 or higher, you can instantiate the object like this:
     * (new QRCode)->fullName('...')->... // Create vCard Object
     */
   
$oQRC = new QRCode; // Create vCard Object
   
$oQRC->fullName('Pierre-Henry Soria')// Add Full Name
   
->nickName('PH7')// Add Nickname
   
->gender('M')// Add Gender
   
->email('ph7software@gmail.com')// Add Email Address
   
->impp('phs_7@aol.com')// Add Instant Messenger
   
->url('http://ph-7.github.com')// Add URL Website
   
->note('Hello to all! I am a web developer. As hobbies I like climbing and swimming ...')// Add Note
   
->categories('developer,designer,climber,swimmer')// Add Categories
   
->photo('http://files.phpclasses.org/picture/user/1122955.jpg')// Add Avatar
   
->lang('en-US')// Add Language
   
->finish(); // End vCard

    // echo '<p><img src="' . $oQRC->get(300) . '" alt="QR Code" /></p>'; // Generate and display the QR Code
   
$oQRC->display(); // Display

} catch (Exception $oExcept) {
    echo
'<p><b>Exception launched!</b><br /><br />' .
       
'Message: ' . $oExcept->getMessage() . '<br />' .
       
'File: ' . $oExcept->getFile() . '<br />' .
       
'Line: ' . $oExcept->getLine() . '<br />' .
       
'Trace: <p/><pre>' . $oExcept->getTraceAsString() . '</pre>';
}


Screenshots  
  • QRCode
  Files folder image Files  
File Role Description
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file LICENSE.txt Lic. License text
Plain text file QRCode.class.php Class Class source
Accessible without login Image file QRCode.png Icon Icon image
Accessible without login Image file QRCode2.png Icon Icon image
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 87%
Total:1,085
This week:0
All time:3,433
This week:108Up