We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
看起来 PHP QR Code 会做你想要的。
Looks like PHP QR Code will do what you want.
如果您愿意通过 HTTP 工作:
zxing 有一个基于 Web 的编码器,位于 http://zxing .org/w/decode.jspx。我不建议您直接使用它,但由于源代码可以在
zxingorg/
下的开源项目中找到,因此您可以轻松运行自己的。然后,您可以通过 HTTP 将图像数据 POST 到服务器来解码 QR 码。同样,对于编码,您可以使用 Google Chart Server,它长期以来一直生成 QR 码。查看 http://zxing.appspot.com/generator - 它会向您显示指向的图像 URL到制作图像的图表服务器。您可以使用相同的方法来获取 PHP 中的编码图像。
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.
http://zbar.sourceforge.net/ 的 Zbar 可以解码二维码,并且可以编译成php 扩展与 PHP 包装器位于 https://github.com/mkoppanen/php-zbarcode。
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.