linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

Maintainers

Package info

github.com/Linkxtr/laravel-qrcode

pkg:composer/linkxtr/laravel-qrcode

Statistics

Installs: 17 183

Dependents: 0

Suggesters: 0

Stars: 36

Open Issues: 0

v3.1.0 2026-06-08 07:40 UTC

This package is auto-updated.

Last update: 2026-06-08 08:13:02 UTC


README

Latest Version on Packagist Total Downloads PHP Version Laravel Version License

A clean, fluent, and modern QR code generator for Laravel. Generate SVG, PNG, WebP, and EPS codes via a fluent Facade, a native Blade component, or an interactive Artisan CLI.

📚 Read the Full Documentation

âš¡ Quickstart

Install the package via Composer:

composer require linkxtr/laravel-qrcode

The Fluent Facade

use Linkxtr\QrCode\Facades\QrCode;

$qr = QrCode::size(400)
    ->format('png')
    ->color(30, 64, 175)
    ->errorCorrection('H')
    ->merge(public_path('logo.png'), 0.25)
    ->generate('https://example.com');

The Blade Component

Drop QR codes directly into your views with zero PHP logic. It automatically handles accessibility (aria-label) and escaping:

<x-qr-code
    data="https://example.com"
    size="300"
    color="#1E40AF"
    margin="2"
/>

Rich Data Types

Built-in helpers for standardized payloads:

QrCode::WiFi([
    'ssid' => 'OfficeNetwork',
    'encryption' => 'WPA2',
    'password' => 'secret'
]);

QrCode::Email('hello@example.com', 'Say Hi!');
QrCode::BTC('bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh', 0.005);

📖 Documentation

For full installation instructions, detailed customization options (gradients, CMYK, custom eye shapes), and advanced macro usage, please visit the official documentation:

👉 laravel-qrcode.mintlify.app

🚀 Upgrading to V3

If you are upgrading from v1.x or v2.x, please refer to our Upgrade Guide for a complete list of breaking changes and migration steps.

📄 License

The MIT License (MIT). Please see License File for more information.