Download the PHP package jamal/laravel-qrcode without Composer
On this page you can find all versions of the php package jamal/laravel-qrcode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jamal/laravel-qrcode
More information about jamal/laravel-qrcode
Files in jamal/laravel-qrcode
Download jamal/laravel-qrcode
More information about jamal/laravel-qrcode
Files in jamal/laravel-qrcode
Vendor jamal
Package laravel-qrcode
Short Description Dependency-free Laravel QR Code generator with pure-PHP SVG renderer and optional GD/Imagick PNG.
License MIT
Package laravel-qrcode
Short Description Dependency-free Laravel QR Code generator with pure-PHP SVG renderer and optional GD/Imagick PNG.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-qrcode
jamal/laravel-qrcode
A dependency-free Laravel QR Code generator with a pure-PHP SVG renderer and optional PNG via GD/Imagick.
Standards Compliance
- Implements ISO/IEC 18004 for Versions 1–40 (auto-selected from the data length).
- Modes: Numeric, Alphanumeric, Byte (UTF-8).
- Error correction: L, M, Q, H via Reed–Solomon over GF(256).
- Masking: evaluates masks 0–7 and selects the lowest-penalty matrix.
- Full function patterns: finder, separators, timing, alignment (v2+), dark module, 15-bit format information (both copies), and 18-bit version information (v7+).
- Output is byte-identical to reference encoders and decodes on standard readers (verified with ZBar across modes, ECC levels, and versions 1–13+).
- Quiet zone default is 4 modules (configurable via
margin).
Installation
Quick Start
Examples
1) SVG and PNG
2) Save to file
3) Controller Response
4) Data URI
5) Blade directive
6) ECC Level, Version, Colors, Transparent BG
7) Wi-Fi, vCard, Alphanumeric
8) Artisan
Configuration (config/qrcode.php)
Troubleshooting: "the QR code won't scan"
The encoder output is standards-compliant, so a code that fails to scan is almost always a rendering or display problem. Check the following:
- Do not stretch the image. Keep the QR perfectly square. When embedding the SVG,
never force a non-square
width/heightin CSS. The SVG usespreserveAspectRatio='xMidYMid meet'so it letterboxes instead of distorting, but a container withobject-fitoverrides or fixed mismatched dimensions can still squash it. - Keep the quiet zone. Leave the default
marginof 4 modules. Don't crop the white border or place the code tight against other dark content. - Render big enough. Aim for at least ~3–4 device pixels per module. For higher
versions (longer data) increase
scaleor reduce the data length. - Preserve contrast. Dark foreground on a light background. Avoid low-contrast color pairs and never invert (light modules on dark background won't scan on most readers).
- Avoid post-processing. Anti-aliasing, JPEG compression of small images, or scaling to non-integer multiples blurs module edges. Prefer SVG, or PNG scaled by whole numbers.
- Shorten the payload. Very long URLs push the symbol to a high version with tiny
modules. Use a redirect/short link, or raise
scale.
Security & Performance
- Validate and limit input length to prevent excessive memory usage.
- Use SVG when possible for crisp scaling. GD/Imagick are optional for PNG.
- Avoid untrusted content injection when echoing inline HTML; prefer Response helpers.
License
MIT
All versions of laravel-qrcode with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/view Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/view Version ^10.0|^11.0|^12.0
The package jamal/laravel-qrcode contains the following files
Loading the files please wait ...