xinyeweb/yii2-qrcode

Jq Qrcode For Yii2

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

dev-master 2017-09-09 02:12 UTC

This package is auto-updated.

Last update: 2024-10-16 20:05:50 UTC


README

Jq Qrcode For Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist xinyeweb/yii2-qrcode "*"

or add

"xinyeweb/yii2-qrcode": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \xinyeweb\qrcode\QrCode::widget([
    'options' => [
        'id' => 'my-qrcode',
        'class' => 'qrcode-class'
    ],
    'clientOptions' => [
        'render' => 'table',
        'text' => 'http://www.autozh.com'    
    ]
]) ?>