odaialali / yii2-qrcode-reader
Yii2 widget for reading qr code using laptop or phone camera
Installs: 9 301
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 3
Open Issues: 2
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-10-26 19:32:30 UTC
README
THIS REPO IS ONLY FOR EXPIREMENT, DO NOT USE IN REAL PROJECTS
Yii2 QR Code Reader
Yii2 widget for reading qr code using laptop or phone camera
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require odaialali/yii2-qrcode-reader "*"
or add
"odaialali/yii2-qrcode-reader": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
echo odaialali\qrcodereader\QrReader::widget([ 'id' => 'qrInput', 'successCallback' => "function(data){ $('#qrInput').val(data) }" ]);