如何在php中从url生成QR图像

发布于 2024-09-15 06:49:50 字数 175 浏览 4 评论 0原文

如何从 URL 生成 QR 图像 并将其显示在网站上?

理想情况下使用 PHP,但任何其他流行的服务器端语言也可以使用,只要设置不太复杂即可。

谢谢!

how can i generate QR Images from an URL and display them on a website?

ideally in PHP but any other popular server side language would work too, as long as it is not too complicated to set up.

thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

错々过的事 2024-09-22 06:49:50

http://code.google.com/p/qrforall/ 是一个 PHP 类自动创建二维码图像。

http://code.google.com/p/qrforall/ is a PHP class for automatic creation of qr code images.

不顾 2024-09-22 06:49:50

由于 Google 图表自 2012 年 4 月起已被弃用,因此您可以使用 http://phpqrcode.sourceforge.net/ 代替:

PHP QR Code 是用于生成 QR Code 的开源(LGPL)库,
二维条形码。基于libqrencode C库,提供API
用于创建 QR 码条形码图像(PNG、JPEG 感谢 GD2)。
纯粹用 PHP 实现,没有外部依赖(GD2 除外)
如果需要的话)。

As Google chart has been deprecated since April 2012, you can use http://phpqrcode.sourceforge.net/ instead:

PHP QR Code is open source (LGPL) library for generating QR Code,
2-dimensional barcode. Based on libqrencode C library, provides API
for creating QR Code barcode images (PNG, JPEG thanks to GD2).
Implemented purely in PHP, with no external dependencies (except GD2
if needed).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文