QrCode facade, Blade component, Artisan CLI, and built-in data types like WiFi, vCard, and more.
Introduction
Learn what Laravel QR Code offers and how it fits into your Laravel
application.
Quickstart
Install the package and generate your first QR code in under five minutes.
Usage Guide
Explore the fluent
QrCode facade API and its full range of chainable
options.Data Types
Encode WiFi credentials, vCards, geo coordinates, crypto addresses, and
more.
Get Started in Three Steps
Install the package
Require the package via Composer and let Laravel auto-discover the service provider.
Publish the config file
Publish the configuration file to customise default format, size, and error correction level.
Laravel QR Code requires PHP 8.2+ and Laravel 12+. Make sure your
environment meets these requirements before installing.
Explore further
Configuration
Customise default output format, image size, margin, and error correction level.
Blade Component
Drop
<x-qr-code> directly into your Blade views with zero extra PHP.Artisan CLI
Generate and save QR code files from the command line with
php artisan qr:generate.Advanced Macros
Extend the
QrCode facade with your own reusable macros via Laravel’s macro system.