PHPackages                             lizhaomiusi/yii2-qrcode-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lizhaomiusi/yii2-qrcode-helper

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

lizhaomiusi/yii2-qrcode-helper
==============================

Create QrCodes based on libqrencode C library.

v1.1(7y ago)017BSD-3-ClausePHP

Since Oct 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/lizhaomiusi/yii2-qrcode-helper)[ Packagist](https://packagist.org/packages/lizhaomiusi/yii2-qrcode-helper)[ Docs](http://yiiwheels.com/extension/qrcode-helper)[ RSS](/packages/lizhaomiusi-yii2-qrcode-helper/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

QrCode Helper for Yii2
======================

[](#qrcode-helper-for-yii2)

[![Latest Version](https://camo.githubusercontent.com/6d847f0f9e62ef604dd50b76d8aed5927f7ab35b7fc882921e5e1cb97c150c15/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f6c697a68616f6d697573692f796969322d7172636f64652d68656c7065722e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/lizhaomiusi/yii2-qrcode-helper/tags)[![Software License](https://camo.githubusercontent.com/b60331a2084501dc07cf6d6964c0da58dd005d89c45cf3b28b4b22b60f5ec00f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/38cabca78dbf52e710fa2fdea17ebabba06b0c426a75e525e8235e7493230921/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c697a68616f6d697573692f796969322d7172636f64652d68656c7065722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/lizhaomiusi/yii2-qrcode-helper)[![Coverage Status](https://camo.githubusercontent.com/ea4a1a09872fd8aa1fc1c2c21fa3dde67badbc921a6fe7f6fa1e54dee053deb8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c697a68616f6d697573692f796969322d7172636f64652d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lizhaomiusi/yii2-qrcode-helper/code-structure)[![Quality Score](https://camo.githubusercontent.com/b29863a70b34fd5b50ae7f92795581442681af3fad6b832b3ca8688a8429c573/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c697a68616f6d697573692f796969322d7172636f64652d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lizhaomiusi/yii2-qrcode-helper)[![Total Downloads](https://camo.githubusercontent.com/529a83dd99c8008186c0bd4401d89b41aeec5312ca114274fd87bcff2fc24e3c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c697a68616f6d697573692f796969322d7172636f64652d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lizhaomiusi/yii2-qrcode-helper)

QrCode helper allows you to render QrCodes on your Yii2 applications.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require lizhaomiusi/yii2-qrcode-helper:~1.0

```

or add

```
"lizhaomiusi/yii2-qrcode-helper" : "~1.0"
```

to the require section of your application's `composer.json` file.

Usage
-----

[](#usage)

The helper comes with some format helper classes that will help you to create the different type of QrCodes that a mobile phone scanner will understand.

The library comes with the following formats:

- Bitcoin
- BookMark
- Geo
- iCal
- MailMessage
- MailTo
- MeCard
- MMS
- Phone
- Sms
- vCard
- Wifi
- Youtube

There are many more out there, we hope the community will helps us improve the library with `facebook`, `google maps`, `youtube`, and `market` links. If not, we will add them whenever we have time :)

To render the qrcode, add this to your HTML page:

```
