如何阅读PHP中的QR码? [英] How can you read QR Codes in PHP?

查看:90
本文介绍了如何阅读PHP中的QR码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有用于解码QR码的简单PHP实现?

我有一个人造智能手机.这些手机中有一部可以作为智能手机使用,但是我无法为其下载任何应用程序,因此我想创建一个电子邮件服务,在该服务中可以拍摄QR码照片,然后将其彩信发送到此电子邮件中,然后电子邮件将返回QR码包含的内容.

但是,我唯一能找到的库是Python(甚至可能是C ++),在有限的托管环境中都无法访问它们.

是否可以仅使用PHP读取QR码?

解决方案

只有一个纯PHP QR代码解码器.它与GD库一起使用,但也可以使用ImageMagick.该PHP QR代码阅读器是从ZXing移植的.

https://github.com/khanamiryan/php-qrcode-detector-decoder

Is there a plain PHP implementation for decoding QR codes?

I have a faux-smartphone. One of those phones that parades as a smartphone but that I can't download any apps for, and I want to create an email service to where I can take a picture of a QR code, MMS it to this email, and the email returns what the QR code contains.

However, the only libraries I've been able to find are in Python (and probably C++), neither of which I can access on my limited hosting environment.

Is there a way to read QR codes using only PHP?

解决方案

There is only one pure PHP QR code decoder. It's working with GD library, but can use also ImageMagick. This PHP QR code reader is ported from ZXing.

https://github.com/khanamiryan/php-qrcode-detector-decoder

这篇关于如何阅读PHP中的QR码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆