Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/odai-alali/yii2-qrcode-reader

Yii2 widget for reading qr code using laptop or phone camera
https://github.com/odai-alali/yii2-qrcode-reader

Last synced: 15 days ago
JSON representation

Yii2 widget for reading qr code using laptop or phone camera

Awesome Lists containing this project

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](http://getcomposer.org/download/).

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 :

```php
echo odaialali\qrcodereader\QrReader::widget([
'id' => 'qrInput',
'successCallback' => "function(data){ $('#qrInput').val(data) }"
]);

```