Skip to content
PHP QRCode Generator Library
Branch: master
Clone or download
aferrandini Merge pull request #11 from rafitaFCB/master
Change scope of image function
Latest commit 919a6a0 Oct 25, 2014
Type Name Latest commit message Commit time
Failed to load latest commit information.
cache Initial version Feb 16, 2012
lib Change scope of image function Oct 25, 2014
.gitignore Porting for compatibility with php 5.3 and namespaces Jan 29, 2013
VERSION Converted to use it as a Symfony2 Library Feb 16, 2012

PHP QRCode Library

To install this library please follow the next steps:

Install the library using composer:

Add the required module to your composer.json file:

    "require": {
        "aferrandini/phpqrcode": "1.0.1"

Then run the command composer update.


Sample code:

\PHPQRCode\QRcode::png("Test", "/tmp/qrcode.png", 'L', 4, 2);

This code will generate a PNG file on '/tmp/qrcode.png' with a QRCode that contains the word 'Test'.


This library is an import of PHP QR Code by Dominik Dzienia that you can find at

Based on C libqrencode library (ver. 3.1.1), Copyright (C) 2006-2010 by Kentaro Fukuchi

QR Code is registered trademarks of DENSO WAVE INCORPORATED in JAPAN and other countries.

Reed-Solomon code encoder is written by Phil Karn, KA9Q. Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q

You can’t perform that action at this time.