Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate and Decode QR Codes from PHP [closed]

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?

like image 894
StackOverflowNewbie Avatar asked Feb 23 '23 14:02

StackOverflowNewbie


2 Answers

Looks like PHP QR Code will do what you want.

like image 88
mjbnz Avatar answered Feb 25 '23 05:02

mjbnz


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.

like image 41
Sean Owen Avatar answered Feb 25 '23 04:02

Sean Owen