Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Qrcode

Laravel Qrcode Laravel Package

akira/laravel-qrcode

Generate QR codes in Laravel with a simple facade and fluent API. Customize size, colors, margins, and error correction, then save, download, or embed codes in Blade views. Supports common image formats for flexible QR code output.

View on GitHub
Deep Wiki
Context7

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

Frequently asked questions about Laravel Qrcode
How do I install akira/laravel-qrcode in a Laravel app?
Install it with composer require akira/laravel-qrcode. The package follows standard Laravel conventions, so the service provider and facade should be auto-discovered; publishing the config with vendor:publish is optional. Confirm the package constraints against your app's PHP and Laravel versions before adopting it.
Does akira/laravel-qrcode support Laravel 9, 10, and 11?
The provided evaluation suggests it fits Laravel monoliths and APIs from roughly Laravel 9 onward, but the exact illuminate and PHP constraints are not shown in the excerpt. Check the package composer.json for the authoritative version matrix and test against your current and next LTS targets. Do not assume support for a Laravel version until the constraints confirm it.
Can it generate SVG QR codes without GD or Imagick?
SVG support is not confirmed in the supplied README excerpt, so verify it before relying on it in containers without GD or Imagick. The package supports common image formats for output, but vector output and filesystem-free generation are separate questions. If you need read-only-filesystem deployments, test that the chosen output path does not write temporary files.
How do I customize QR code size, colors, margin, and error correction?
The fluent API is described as exposing size, colors, margins, and error correction, which are the parameters that most affect scannability. Use the package docs to chain those options before generating the code. For printed codes, test the quiet zone, module size, and contrast with a real scanner rather than only checking visual appearance.
How do I save or download a generated QR code in Laravel?
The package is designed to save and download QR codes, so you can write to a Laravel disk or return a download response. Ensure the target filesystem is writable, or stream the generated output if your deployment is read-only. Confirm the response content type and filename behavior in your own feature test.
Can I embed a QR code directly in a Blade view?
Yes, the overview says QR codes can be embedded in Blade views. A practical approach is to generate the code in a controller or view component and pass the output or data URI to the template. Check how the package returns binary or SVG data so you escape and cache it correctly.
Which QR encoding library does akira/laravel-qrcode use?
The evaluation does not name the underlying encoder; it only suggests the package is likely a thin wrapper over an established library such as bacon/bacon-qr-code or chillerlan/php-qrcode. Check composer.lock and the package composer.json to see the actual dependency and version. Then verify that dependency's maintenance status, advisories, and transitive packages with composer audit.
Is akira/laravel-qrcode safe for production use?
Treat it as a small, low-blast-radius dependency rather than a proven production standard. The evaluation notes 49 stars, zero dependents, and a single maintainer, so your team may be an early reference implementation. Mitigate by pinning an exact version, running composer audit in CI, and hiding the facade behind your own QrGenerator contract.
How should I test QR code generation in a Laravel application?
A useful test suite should assert more than a non-empty string; decode the generated PNG or SVG and confirm the payload scans correctly. At minimum, add feature tests for the facade call, custom size and margin options, output headers, and save or download behavior. If the package only ships snapshot assertions, add your own decoding test around the output.
What are alternatives to akira/laravel-qrcode for Laravel QR codes?
If you want fewer layers, call the underlying encoder directly, such as bacon/bacon-qr-code or chillerlan/php-qrcode, after confirming which one this package wraps. You can also keep QR generation in a front-end library if server-side output is not required. Either way, define an internal contract so swapping implementations is a container binding rather than a codebase sweep.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections