huijiewei/yii2-jsqr

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

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: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

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: 2021-10-10 08:45:30 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); }'
]) ?>