Recommend this page to a friend! |
Download |
Info | Example | Screenshots | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-01-09 (9 months ago) | Not enough user ratings | Total: 1,117 | All time: 3,371 This week: 38 |
Version | License | PHP version | Categories | |||
php-qrcode-generator 1.13 | GNU General Publi... | 5.2 | PHP 5, Graphics, Web services |
Description | Author | |
This class can generate QRCode images using Google Charts API. |
Simple PHP MySQL QR Code Generator
qr code generator
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
<?php |
QRCode PHP class allows you to easily generate a simple QR code using vCard 4.0 and the Google Chart API.
Here are two videos explaining QR code: http://www.youtube.com/watch?v=B3lrcOhmp9g and http://www.youtube.com/watch?v=IphTJHiKGos
You can add it easily in your project by using Composer.
$ composer require ph-7/qrcode-generator-php-class
Then, include Composer's autoload
require_once 'vendor/autoload.php';
If you don't use Composer, you can install it without Composer by simply including the class
require 'QRCode.class.php';
Here's a basic example:
/
* 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(300); // Set size and display QR Code default 150px
You also have a sample file here: http://github.com/pH-7/QRCode-Generator-PHP-Class/blob/master/example.php
PHP 5.2.4 or higher.
Contact me at: pierrehenrysoria [[AT]] gmail [[D0T]] com
General Public License 3 or later; See the LICENSE.txt file.
Screenshots (1) | ||
Files (8) |
File | Role | Description |
---|---|---|
composer.json | Data | Auxiliary data |
example.php | Example | Example script |
LICENSE.txt | Lic. | License text |
QRCode.class.php | Class | Class source |
QRCode.png | Icon | Icon image |
QRCode2.png | Icon | Icon image |
README.md | Doc. | Documentation |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
87% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.