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

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

peal/qrcode-generator
=====================

QR code generate in Laravel

5346PHP

Since May 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/moin786/easy-qrcode-generator)[ Packagist](https://packagist.org/packages/peal/qrcode-generator)[ RSS](/packages/peal-qrcode-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Package for QR Code generator in easy way.
==================================================

[](#laravel-package-for-qr-code-generator-in-easy-way)

 A QR code (quick response code) is a type of 2D bar code that is used to provide easy access to information through a smartphone. In this process, known as mobile tagging, the smartphone's owner points the phone at a QR code and opens a barcode reader app which works in conjunction with the phone's camera.

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

[](#installation)

Inside your project root directory, open your terminal

```
composer require peal/qrcode-generator
```

Composer will automatically download all dependencies.

#### For Laravel

[](#for-laravel)

After complete the installation, open your app.php from config folder, paste below line inside providers array

```
peal\qrcodegenerator\QrServiceProvider::class,
```

For Facade support, paste below line inside aliases array

```
'QR' => peal\qrcodegenerator\Facades\QR::class,
```

Then run this command

```
php artisan vendor:publish --provider="peal\qrcodegenerator\QrServiceProvider"
```

After vendor published check your config folder qr-config.php is created.

```
/*
 * QR api url
 *
 */

return [
    'qrapi'  => 'https://chart.googleapis.com/chart?',
];
```

### SINGLE QR CODE USAGES

[](#single-qr-code-usages)

```
 //Using Facades

try {
        $qrcontent = QR::qrFactory()
                ->email("moinuddin7@gmail.com")
                ->phone("01716187302")
                ->url("https://moinshareidea.wordpress.com/")
                ->text("position:","Lead Developer at GrubDealz Inc.")
                ->QrCode(200);

        echo '';

} catch(Exception $e) {

    return $e->getMessage();

}

//Using service container

try {

        $qr = App::make('QR');

        $qrcontent = $qr->qrFactory()
                ->email("moinuddin7@gmail.com")
                ->phone("01716187302")
                ->text("website:","https://moinshareidea.wordpress.com/")
                ->text("position:","Lead Developer at GrubDealz Inc.")
                ->QrCode(200);

        echo '';
} catch(Exception $e) {

    return $e->getMessage();

}

//Using core PHP

try {

        //Without Laravel, can be usable any php or php framework

        $qr = new \peal\qrcodegenerator\Server\QrServer();

        $qrcontent = $qr->qrFactory()
                ->email("moinuddin7@gmail.com")
                ->phone("01716187302")
                ->text("website:","https://moinshareidea.wordpress.com/")
                ->text("position:","Lead Developer at GrubDealz Inc.")
                ->QrCode(200);

        echo '';

} catch(Exception $e) {

    return $e->getMessage();

}
```

### Multiple QR code using Facades

[](#multiple-qr-code-using-facades)

```

    //in your controller contruct method
    $qr = App::make('QR');

    try {
            $qrcodes = [
                [
                    'email' => 'moinuddin7@gmail.com',
                    'phone' => '01716187302',
                    'url' => 'https://moinshareidea.wordpress.com/',
                    'position' => 'Lead Developer at GrubDealz Inc.',
                ],
                [
                    'email' => 'moinuddinbca7@gmail.com',
                    'phone' => '01716187332',
                    'url' => 'https://moinshareidea.wordpress.com/',
                    'position' => 'Software engineer at GrubDealz Inc.',
                ],
                [
                    'email' => 'arifinbca@gmail.com',
                    'phone' => '01716187392',
                    'url' => 'https://moinshareidea.wordpress.com/',
                    'position' => 'Business development officer at BCA Bangladesh.',
                ],
            ];

            foreach($qrcodes as $qrcode) {
                    $qrcontent = $qr->qrFactory()
                        ->email($qrcode['email'])
                        ->phone($qrcode['phone'])
                        ->url($qrcode['url'])
                        ->text('',$qrcode['position'])
                        ->QrCode(200);

                    echo '';
            }

        } catch(Exception $e) {

            return $e->getMessage();

        }

```

### Multiple QR Code using Core PHP

[](#multiple-qr-code-using-core-php)

```
use peal\qrcodegenerator\Server\QrServer;
$qr = new QrServer();

    try {
            $qrcodes = [
                [
                    'email' => 'moinuddin7@gmail.com',
                    'phone' => '01716187302',
                    'url' => 'https://moinshareidea.wordpress.com/',
                    'position' => 'Lead Developer at GrubDealz Inc.',
                ],
                [
                    'email' => 'moinuddinbca7@gmail.com',
                    'phone' => '01716187332',
                    'url' => 'https://moinshareidea.wordpress.com/',
                    'position' => 'Software engineer at GrubDealz Inc.',
                ],
                [
                    'email' => 'arifinbca@gmail.com',
                    'phone' => '01716187392',
                    'url' => 'https://moinshareidea.wordpress.com/',
                    'position' => 'Business development officer at BCA Bangladesh.',
                ],
            ];

            foreach($qrcodes as $qrcode) {
                    $qrcontent = $qr->qrFactory()
                        ->email($qrcode['email'])
                        ->phone($qrcode['phone'])
                        ->url($qrcode['url'])
                        ->text('',$qrcode['position'])
                        ->QrCode(200);

                    echo '';
            }

        } catch(Exception $e) {

            return $e->getMessage();

        }
```

### Multiple QR code using Facades

[](#multiple-qr-code-using-facades-1)

```
    use peal\qrcodegenerator\Facades\QR;

    try {
            $qrcodes = [
                [
                    'email' => 'moinuddin7@gmail.com',
                    'phone' => '01716187302',
                    'url' => 'https://moinshareidea.wordpress.com/',
                    'position' => 'Lead Developer at GrubDealz Inc.',
                ],
                [
                    'email' => 'moinuddinbca7@gmail.com',
                    'phone' => '01716187332',
                    'url' => 'https://moinshareidea.wordpress.com/',
                    'position' => 'Software engineer at GrubDealz Inc.',
                ],
                [
                    'email' => 'arifinbca@gmail.com',
                    'phone' => '01716187392',
                    'url' => 'https://moinshareidea.wordpress.com/',
                    'position' => 'Business development officer at BCA Bangladesh.',
                ],
            ];

            foreach($qrcodes as $qrcode) {
                    $qrcontent = QR::qrFactory()
                        ->email($qrcode['email'])
                        ->phone($qrcode['phone'])
                        ->url($qrcode['url'])
                        ->text('',$qrcode['position'])
                        ->QrCode(200);

                    echo '';
            }

        } catch(Exception $e) {

            return $e->getMessage();

        }
```

### Author

[](#author)

[Mohammed Minuddin(Peal)](https://moinshareidea.wordpress.com)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/171ff00d2636607267851b5600ddb93bdeb77b62dca6f1b6c031dd6f40a3753d?d=identicon)[moin786](/maintainers/moin786)

---

Top Contributors

[![moin786](https://avatars.githubusercontent.com/u/12525167?v=4)](https://github.com/moin786 "moin786 (32 commits)")

---

Tags

googlelaravellaravelqrcodephpphpqrcodeqrcode

### Embed Badge

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

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

###  Alternatives

[harvesthq/chosen

Chosen is a JavaScript plugin that makes select boxes user-friendly. It is currently available in both jQuery and Prototype flavors.

385.2M12](/packages/harvesthq-chosen)[niiknow/bayes

a machine learning lib

6950.0k](/packages/niiknow-bayes)

PHPackages © 2026

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