Download the PHP package jeeven/qrcode without Composer
On this page you can find all versions of the php package jeeven/qrcode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeeven/qrcode
More information about jeeven/qrcode
Files in jeeven/qrcode
Informations about the package qrcode
jeeven/qrcode
A modern Laravel package for generating QR codes — PNG, SVG, WebP, Base64 data URIs, and direct HTTP responses. Built on top of endroid/qr-code v6.
Requires PHP 8.1+ and Laravel 10, 11, 12, or 13.
Installation
Laravel auto-discovers the service provider and QrCode facade — no manual registration needed.
Optionally publish the config file:
Usage
Basic
Fluent options
Base64 data URI (embed directly in HTML <img>)
Direct HTTP response (streams the image)
Save to disk
With a label
With a logo overlay
Built-in HTTP endpoint
The package registers GET /qrcode/{data} (configurable prefix) when qrcode.route.enabled is true in config.
Query params: size, margin, format, error_correction, color, background_color.
Disable this route entirely by setting route.enabled to false in config/qrcode.php, or by publishing the config and adjusting it per environment.
Configuration reference (config/qrcode.php)
| Key | Default | Description |
|---|---|---|
size |
300 |
QR code width/height in pixels |
margin |
10 |
Quiet-zone margin in pixels |
format |
png |
png, svg, webp, or eps |
error_correction |
high |
low, medium, quartile, high |
color |
#000000 |
Foreground hex color |
background_color |
#ffffff |
Background hex color |
route.enabled |
true |
Toggle the built-in HTTP endpoint |
route.prefix |
qrcode |
URL prefix for the endpoint |
route.middleware |
['web'] |
Middleware applied to the route |
API
Jeeven\QrCode\QrCodeGenerator (accessible via the QrCode facade or DI):
| Method | Description |
|---|---|
make(string $data) |
Start a new QR code (static) |
data(string $data) |
Set/override the data |
size(int $size) |
Set pixel size |
margin(int $margin) |
Set margin |
format(string $format) |
png|svg|webp|eps |
errorCorrection(string $level) |
low|medium|quartile|high |
color(string $hex) |
Foreground color |
backgroundColor(string $hex) |
Background color |
label(string $text, int $fontSize = 16) |
Add caption text below the code |
logo(string $path, ?int $size = 60) |
Overlay a logo image |
generate() |
Returns raw endroidResultInterface |
toString() |
Raw string/binary output |
toPng() / toSvg() / toWebp() |
Format-specific string output |
toBase64() |
Base64 data URI |
save(string $path) |
Write to disk |
toResponse() |
Symfony/Laravel HTTPResponse |
Testing
License
MIT
All versions of qrcode with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
endroid/qr-code Version ^6.0