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?
Looks like PHP QR Code will do what you want.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With