最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
利用phpqrcode生成二维码实例代码
时间:2022-06-24 23:04:50 编辑:袖梨 来源:一聚教程网
QR码详细原理可以参考QR维基百科,中文版介绍比较少,英文版介绍很全面,推荐看英文版的。
Description
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.
Features
•Supports QR Code versions (size) 1-40
•Numeric, Alphanumeric, 8-bit and Kanji encoding.
•Implemented purely in PHP, no external dependencies except GD2
•Exports to PNG, JPEG images, also exports as bit-table
•TCPDF 2-D barcode API integration
•Easy to configure
•Data cache for calculation speed-up
•Debug data dump, error logging, time benchmarking
•Provided merge tool helps deploy library as a one file
•new! API documentation
•new! Over 30 detailed examples
•100% Open Source, LGPL Licensed
Demo
项目地址:http://**sourc*eforge.net/projects/phpqrcode/
Generate fixed size images
* phpqrcode本身未提供固定大小二维码的设置,请参考 http://sourc*eforg**e.net/p/phpqrcode/discussion/1111884/thread/f739531a/
代码如下 | 复制代码 |
--- original/phpqrcode/qrimage.php 2010-08-18 07:06:24.000000000 -0700 用法,设置生成的二维码宽高为 500px define('IMAGE_WIDTH', 500); |
相关文章
- 你好邻居2怎么设置中文-你好邻居2设置中文教程 09-13
- 大侠立志传定罪柴王四个线索攻略-大侠立志传定罪柴王线索有哪些 09-13
- 海龟蘑菇汤另辟蹊径怎么过 海龟蘑菇汤另辟蹊径答案 09-13
- 黎明之海如何切换船只-黎明之海常见玩法问题QA 09-13
- 江南百景图怎么运输人-江南百景图怎么运输居民 09-13
- 僵尸毁灭工程游戏开局有什么武器推荐?僵尸毁灭工程游戏开局武器排行榜 09-13