api生成二维码


[TOC]

1.百度api:

1
2
3
$content = urlencode($content);//要生成二维码的内容
$image = '<img src="http://pan.baidu.com/share/qrcode?w=150&h=150&url='.$content.'" />';
return $image;

2.其他接口:照样子改就行

http://b.bshare.cn/barCode?site=weixin&url=http://lanyes.org
http://s.jiathis.com/qrcode.php?url=http://lanyes.org
http://www.kuaizhan.com/common/encode-png?large=true&data=http://lanyes.org

热评文章