新业网 / yii2-qrcode
Yii2 jq二维码插件
dev-master
2017-09-09 02:12 UTC
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-09-16 19:51:21 UTC
README
Yii2 jq二维码插件
安装
安装此扩展的首选方法是通过 composer。
可以运行
php composer.phar require --prefer-dist xinyeweb/yii2-qrcode "*"
或者添加
"xinyeweb/yii2-qrcode": "*"
到你的 composer.json 文件的 require 部分。
使用方法
扩展安装后,只需在你的代码中使用它即可
<?= \xinyeweb\qrcode\QrCode::widget([ 'options' => [ 'id' => 'my-qrcode', 'class' => 'qrcode-class' ], 'clientOptions' => [ 'render' => 'table', 'text' => 'http://www.autozh.com' ] ]) ?>