Generate and Decode QR Codes from PHP

10,004

Solution 1

Looks like PHP QR Code will do what you want.

Solution 2

If you're willing to work over HTTP:

There is a web-based encoder from zxing at http://zxing.org/w/decode.jspx. I don't suggest you use it directly, but since the source is available in the open-source project under zxingorg/, you can easily run your own. Then you can decode QR codes by POSTing the image data to the server over HTTP.

For encoding, likewise, you could just use the Google Chart Server, which has generated QR codes for a long time. Look at http://zxing.appspot.com/generator -- it will show you the image URL pointing to the chart server that makes the image. You can just use the same to grab encoded images in PHP.

Solution 3

Zbar at http://zbar.sourceforge.net/ can decode qr codes, and it can be compiled into at php extension with the PHP wrapper at https://github.com/mkoppanen/php-zbarcode.

Share:
10,004
StackOverflowNewbie
Author by

StackOverflowNewbie

Updated on June 06, 2022

Comments

  • StackOverflowNewbie
    StackOverflowNewbie almost 2 years

    Can anyone recommend a PHP library (if one exist) that will generate and decode QR codes? This seems to do the job: http://code.google.com/p/zxing/ but it is in Java. If I have to use ZXing, how do I make it work from PHP?