PHPackages                             vcode/qrcode - 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. vcode/qrcode

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vcode/qrcode
============

This is package generate Qrcode using some services like google qrcode. This package also support attaching logo into qrcode. In Laravel framework, it fully support for using facade, blade helper.

v1.1.0(11y ago)44653[1 issues](https://github.com/tyanhly/vcode_qrcode/issues)MITPHPPHP &gt;=5.3.0

Since May 9Pushed 8y ago2 watchersCompare

[ Source](https://github.com/tyanhly/vcode_qrcode)[ Packagist](https://packagist.org/packages/vcode/qrcode)[ RSS](/packages/vcode-qrcode/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

PHP Qrcode Library (support laravel framework)
==============================================

[](#php-qrcode-library-support-laravel-framework)

---

Introduction
------------

[](#introduction)

This is package generate Qrcode using some services like google qrcode (currently, it only support google service). This package also support **attaching logo** into qrcode. In Laravel framework, it fully support for using facade, blade helper.

Reference [https://developers.google.com/chart/infographics/docs/qr\_code](https://developers.google.com/chart/infographics/docs/qr_code)

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

[](#installation)

- This is require: php5-gd for write image.

```
      Debian: apt-get install php5-gd

      RedHat: yum install gd gd-devel php-gd

```

- Update require in `composer.json` file.

```
      "vcode/qrcode": "dev-master"

```

- You'll then need to run

```
      composer update

```

- Or

```
      composer require "vcode/qrcode":"dev-master"

```

LARAVEL USING
-------------

[](#laravel-using)

File: `app/config/app.php`

Provider:

```
    'providers' => array(
        'Vcode\Qrcode\QrcodeServiceProvider',
    )
```

Facade

```
    'aliases' => array(
        'Qrcode' => 'Vcode\Qrcode\Facades\Qrcode',
    )

```

Create configuration file using artisan

```
$ php artisan config:publish vcode/qrcode

```

#### Using In Controller

[](#using-in-controller)

```
    $value = "https://github.com/tyanhly/vcode_qrcode";

    //or for fully options
    //$value = array(
    //    'chs' => "250x250",
    //    'cht' => "qr",
    //    'chl' => "https://github.com/tyanhly/vcode_qrcode"
    //    'chld'=> "H|1",         // H(QML)|1, H|2, H|3, H|4, H|10, H|40,
    //    'choe'=> "UTF-8"        // UTF-8, Shift_JIS, ISO-8859-1
    //);

    /**
     * @param array googleOption
     * @param string $destinate
     * @param string $logoPath
     * @param float $ratioOfLogoOnQrcode
     * @param int $qrCodeService
     */
    //Qrcode::storageImage(array googleOption, string $destinate, string $logoPath, float $ratioOfLogoOnQrcode, int $qrCodeService);
    Qrcode::storageImage($value, "/tmp/destination.png", "logo.png", 0.3);

    /**
     * @param array googleOption
     * @param int $qrCodeService
     */
    //Qrcode::render(array googleOption, int $qrCodeService);
    Qrcode::render($value);

    /**
     * @param array googleOption
     * @param string $logoPath
     * @param float $ratioOfLogoOnQrcode
     * @param int $qrCodeService
     */
    //Qrcode::renderBase64(array googleOption, string $logoPath, float $ratioOfLogoOnQrcode, int $qrCodeService);
    Qrcode::renderBase64($value, "logo.png");

    /**
     * @param array googleOption
     * @param string $logoPath
     * @param float $ratioOfLogoOnQrcode
     * @param int $qrCodeService
     */
    //Qrcode::renderBase64Dome(array googleOption, string $logoPath, float $ratioOfLogoOnQrcode, int $qrCodeService);
    Qrcode::renderBase64Dom($value, "logo.png");
```

#### Using the Blade helper

[](#using-the-blade-helper)

```
@qrcode("https://github.com/tyanhly/vcode_qrcode")
@qrcodeBase64Dom("https://github.com/tyanhly/vcode_qrcode", "logo.png", 0.5)

```

Using like php library
----------------------

[](#using-like-php-library)

```
    //Please, reference /example for more detail

    include 'vendor/autoload.php';
    $qrcode = new Vcode\Qrcode\Qrcode(array(
            'qrcode::google_config_default' => array(
                'chs' => "250x250",
                'cht' => "qr",
                'chld'=> "H|1",         // H(QML)|1, H|2, H|3, H|4, H|10, H|40,
                'choe'=> "UTF-8"        // UTF-8, Shift_JIS, ISO-8859-1
            ),
            'qrcode::template_simple' => './template',
            'qrcode::storage_dir'     => '/tmp'
        ));
    $value = "MECARD:N:XXXXX;ADR:xxx xxxxx xxxxxx xx xxx city;"
           . "TEL:+XXXXXXXXX;EMAIL:xxxxx@gmail.com;;";
    //$qrcode->render($value);
    $qrcode->renderBase64Dom($value, "logo.png", 0.7);

```

Example
-------

[](#example)

- [https://github.com/tyanhly/vcode\_qrcode/tree/master/example](https://github.com/tyanhly/vcode_qrcode/tree/master/example)

Change Log
----------

[](#change-log)

#### v1.0.0

[](#v100)

- First release

#### v1.0.1

[](#v101)

- Base64 encoding
- Storage image

#### v1.1.0

[](#v110)

- Logo attach
- Support like a library, not only for laravel.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

4026d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44a7eb1a8443e9a97ff3b7dcd85b1045bd9fe18837e05916b0dd14b8b9a758e2?d=identicon)[tyanhly](/maintainers/tyanhly)

---

Top Contributors

[![tyanhly](https://avatars.githubusercontent.com/u/2138563?v=4)](https://github.com/tyanhly "tyanhly (34 commits)")

---

Tags

phpqrcodelaravel

### Embed Badge

![Health badge](/badges/vcode-qrcode/health.svg)

```
[![Health](https://phpackages.com/badges/vcode-qrcode/health.svg)](https://phpackages.com/packages/vcode-qrcode)
```

###  Alternatives

[amirezaeb/heroqr

A Powerful QR Code Management Library For PHP

9510.3k](/packages/amirezaeb-heroqr)[amranidev/laracombee

Recommendation system for laravel

11636.7k1](/packages/amranidev-laracombee)[wujunze/money-wrapper

MoneyPHP Wrapper

113.8k](/packages/wujunze-money-wrapper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
