PHPackages                             abduns/laravel-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. [Templating &amp; Views](/categories/templating)
4. /
5. abduns/laravel-qrcode

ActiveLibrary[Templating &amp; Views](/categories/templating)

abduns/laravel-qrcode
=====================

Laravel 12/13 bridge for the abduns/qrcode QR Code generator: ServiceProvider, Facade, Blade directive, and response()-&gt;qrcode() macro.

v1.2.3(3w ago)0147—0%MITPHPPHP ^8.2CI passing

Since May 10Pushed 3w agoCompare

[ Source](https://github.com/abduns/laravel-qrcode)[ Packagist](https://packagist.org/packages/abduns/laravel-qrcode)[ RSS](/packages/abduns-laravel-qrcode/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (8)Versions (13)Used By (0)

laravel-qrcode
==============

[](#laravel-qrcode)

Laravel 12/13 bridge for the abduns/qrcode QR Code generator: ServiceProvider, Facade, Blade directive, and response()-&gt;qrcode() macro.

[![Tests](https://github.com/abduns/laravel-qrcode/actions/workflows/tests.yml/badge.svg)](https://github.com/abduns/laravel-qrcode/actions)[![Version](https://camo.githubusercontent.com/6a252f7b5085ad9df1c22d67a0bb87bf3799189ec2061b5d08a13e4a22ac33eb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616264756e732f6c61726176656c2d7172636f64652e737667)](https://packagist.org/packages/abduns/laravel-qrcode)[![Downloads](https://camo.githubusercontent.com/a645c811df7ed3b45e7c4bc312024361145f0d14f8715a292682299e044a6a29/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616264756e732f6c61726176656c2d7172636f64652e737667)](https://packagist.org/packages/abduns/laravel-qrcode)[![License](https://camo.githubusercontent.com/4b44011d2ab839ac8bcfe2c1e8c3faa9bbb5e9ce98e44512f3d072bf4fb13ead/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616264756e732f6c61726176656c2d7172636f64652e737667)](LICENSE.md)

---

Features
--------

[](#features)

- Modern PHP support
- Lightweight and fast
- Typed API
- Laravel Facade &amp; Blade Directives
- Standards-oriented
- Response Macros

---

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

[](#installation)

```
composer require abduns/laravel-qrcode
php artisan vendor:publish --tag=qrcode-config
```

---

Quick Start
-----------

[](#quick-start)

```
use Dunn\QrCode\Laravel\Facades\QrCode;

$svg = QrCode::svg('https://example.com');
```

---

Why This Package?
-----------------

[](#why-this-package)

- Existing solutions are outdated
- Missing modern PHP features
- Poor developer experience
- No standards compliance
- Too framework-coupled

This package focuses on simplicity, interoperability, and modern developer ergonomics for generating QR Codes directly in Laravel.

---

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
use Dunn\QrCode\Laravel\Facades\QrCode;

$svg     = QrCode::svg('https://example.com');     // SVG markup (the default)
$png     = QrCode::png('https://example.com');     // raw PNG bytes (ext-gd)
$ascii   = QrCode::console('https://example.com'); // unicode block string
$builder = QrCode::create('https://example.com');  // raw core Builder
```

### Advanced Usage

[](#advanced-usage)

```
use Dunn\QrCode\Laravel\Facades\QrCode;
use Dunn\QrCode\Payload\VCard;

// vCard — compose the contact, then hand to the facade
$card = VCard::make('John Doe')
    ->withOrg('Acme')
    ->addPhone('+14155550123', VCard::TYPE_WORK)
    ->addEmail('john@acme.com');

$svg = QrCode::svg($card);
```

### Blade Directive

[](#blade-directive)

```
{!! '@qrcode'('https://example.com') !!}
```

### Response Macro

[](#response-macro)

```
use Dunn\QrCode\Renderer\Png\GdPngRenderer;

Route::get('/qr/{data}', fn (string $data) => response()->qrcode($data));
```

### Configuration

[](#configuration)

`config/qrcode.php` exposes:

```
[
    'ecc'        => EccLevel::Medium,
    'renderer'   => 'svg',         // 'svg' | 'png' | 'console'
    'size'       => 300,
    'margin'     => 4,
    'foreground' => '#000000',
    'background' => '#ffffff',
]
```

---

Standards / Specifications
--------------------------

[](#standards--specifications)

References:

- ISO/IEC 18004

---

Supported Features
------------------

[](#supported-features)

FeatureSupportFacade✅Blade Directives✅Response Macros✅---

Compatibility
-------------

[](#compatibility)

PlatformSupportedPHP 8.2+✅Laravel 12.0+✅---

Design Goals
------------

[](#design-goals)

- Developer experience first
- Predictable APIs
- Minimal dependencies
- Strong typing
- Extensibility
- Interoperability

---

Architecture
------------

[](#architecture)

- Facades
- Service Providers
- Response Macros
- Blade Directives

---

Performance
-----------

[](#performance)

OperationTimeRender component&lt; 2ms---

Testing
-------

[](#testing)

```
composer test
```

---

Roadmap
-------

[](#roadmap)

- Support Livewire components

---

Contributing
------------

[](#contributing)

Contributions, issues, and discussions are welcome.

---

Security
--------

[](#security)

If you discover security issues, please report them responsibly.

---

License
-------

[](#license)

MIT

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance95

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.9% 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

10

Last Release

23d ago

Major Versions

v0.3.0 → v1.0.02026-05-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28977075?v=4)[Abdun](/maintainers/abduns)[@abduns](https://github.com/abduns)

---

Top Contributors

[![abduns](https://avatars.githubusercontent.com/u/28977075?v=4)](https://github.com/abduns "abduns (15 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (4 commits)")

---

Tags

qr codeqrcodeqrlaravelblade

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k449.3k30](/packages/tightenco-jigsaw)[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k531.0k21](/packages/robsontenorio-mary)[moonshine/moonshine

Laravel administration panel

1.3k239.9k72](/packages/moonshine-moonshine)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5222.7k](/packages/hasinhayder-tyro-dashboard)[technikermathe/blade-lucide-icons

A package to easily make use of Lucide icons in your Laravel Blade views.

18379.7k9](/packages/technikermathe-blade-lucide-icons)[hasinhayder/tyro-login

Tyro Login - Beautiful, customizable authentication views for Laravel 12 &amp; 13

2443.7k5](/packages/hasinhayder-tyro-login)

PHPackages © 2026

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