Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PHP QRCode Generator Library
PHP
Branch: master
Pull request Compare This branch is 23 commits behind aferrandini:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Classes
cache
LICENSE
VERSION
readme.md

readme.md

PHP QRCode Library

To install this library please follow the next steps:

First add the repo to your deps file:

[PHPQRCode]
    git=https://github.com/aferrandini/PHPQRCode.git
    target=/phpqrcode

Then install the library with the command:

./bin/vendors install

Now the library is installed so, now we need to load in the autoload.php

Open the file ./app/autoload.php and add this line

$loader->registerPrefixes(array(
    ...
    'PHPQRCode'        => __DIR__.'/../vendor/phpqrcode/Classes',
    ....
));

Now you can use the PHPQRCode libray everywhere in your Symfony2 app!

Sample code:

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

This library it's an import of phpqrcodelib that you can find at http://phpqrcode.sourceforge.net/

Something went wrong with that request. Please try again.