huijiewei/yii2-jsqr

A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within.

Installs: 45

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 0

Language:JavaScript

Type:yii2-extension

2.0.1 2019-06-10 03:05 UTC

This package is auto-updated.

Last update: 2024-12-10 15:55:08 UTC


README

YII2 jsQR 二维码扫描扩展

大部分浏览器需要开启 https 才可以正常使用,Firefox 可以不使用 https

同一二维码每5秒才会 callback 一次

演示地址:https://huijiewei.github.io/yii2-jsqr/

<?= \huijiewei\jsqr\JsQrWidget::widget([
    'id' => 'jsQR',
    'callback' => 'function(code) { console.log(code); }'
]) ?>