> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linkx.tr/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel QR Code — Clean QR Code Generation for Laravel

> Laravel QR Code is a fluent, modern QR code generator for Laravel 12+ / 13+. Generate SVG, PNG, WebP, and EPS codes via facade, Blade component, or CLI.

Laravel QR Code gives you a clean, fluent API for generating QR codes in any Laravel 12+ / 13+ application. Whether you need a one-liner in a Blade view, a controller action that encodes a vCard, or a build-script that writes PNGs to disk, the package covers all three with zero boilerplate.

> [card] Fluent Facade
>
> Chain methods on `QrCode::` to set size, color, format, and error correction
> — then call `generate()` to get the result.

> [card] Blade Component
>
> Drop `<x-qr-code data="…" />` into any template and get an accessible,
> inline SVG or base64 image with no extra PHP.

> [card] Artisan CLI
>
> Run `php artisan qr:generate` for interactive generation or pass flags for
> scripted, non-interactive output.

> [card] Rich Data Types
>
> Built-in helpers for URLs, Email, SMS, WiFi, vCard, MeCard, Geo, WhatsApp,
> Telegram, Calendar Events, BTC, and Ethereum.

> [card] Multiple Formats
>
> Output SVG (default, no extensions needed), PNG, WebP, or EPS. PNG and WebP
> use Imagick when available, GD otherwise.

> [card] Deep Customization
>
> Control colors (RGB, RGBA, CMYK, grayscale), gradients, dot/round/square
> module styles, eye styles, image merging, and error correction levels.

> [card] Auto-Discovery
>
> The service provider and `QrCode` facade alias are registered automatically
> — no `config/app.php` edits required.

> [card] Macros
>
> Register your own named data types with Laravel's `Macroable` trait and call
> them as first-class facade methods.

## Requirements

| Dependency | Required version |
| - | - |
| PHP | 8.2 or higher |
| Laravel | 12.0 / 13.0 |
| `ext-imagick` | Optional — recommended for PNG/WebP performance |
| `ext-gd` | Optional — automatic fallback for PNG/WebP when Imagick is absent |

> [!NOTE]
>
> SVG and EPS generation require no PHP image extensions. `ext-imagick` or
> `ext-gd` is only needed when you output PNG or WebP.

## Version guidance

| Package version | PHP | Laravel | Status |
| - | - | - | - |
| **v3.x** (current) | 8.2+ | 12+ / 13+ | Active development |
| v2.x | 8.2+ | 11+ | Maintenance only |
| v1.x | 8.1+ | 10 | Maintenance only |

Install `linkxtr/laravel-qrcode:^3.0` to get the latest v3.x release with semantic versioning protection. If your project runs Laravel 10, use `^1.0` instead.

> [!TIP]
>
> Upgrading from v2.x? Read the [Upgrade Guide](https://docs.linkx.tr/advanced/upgrade-guide.md) before
> updating — the v3 API is a breaking change from the v2 interface.

## Next steps

Ready to add QR codes to your app? Head to the [Quickstart](https://docs.linkx.tr/quickstart.md) to generate your first code in under five minutes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.