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
Phpqrcode Bundle

Phpqrcode Bundle Laravel Package

jonasarts/phpqrcode-bundle

Symfony bundle that integrates the PHP QR Code library, making it easy to generate QR codes from your application and templates. It provides a convenient wrapper around QR generation, so you can add scannable codes for URLs, contact details, or other content with minimal setup and configuration.

View on GitHub
Deep Wiki
Context7

A PHP QR Code Bundle for Symfony

Frequently asked questions about Phpqrcode Bundle
Can I use jonasarts/phpqrcode-bundle in a Laravel application?
Not as a normal Composer dependency. It is a Symfony bundle that ships a Bundle subclass and Symfony DI extension, and Laravel does not register Symfony bundles. There is no Laravel service provider, facade, config publishing, or package discovery. For Laravel, use a Laravel-native wrapper such as simplesoftwareio/simple-qrcode or wrap a PSR-4 encoder yourself.
How do I install jonasarts/phpqrcode-bundle?
Install it with Composer in a Symfony project and register the bundle in your Symfony application, typically in config/bundles.php for Symfony Flex apps. Then configure the defaults under the bundle's config key. Laravel installation steps do not apply because there is no service provider. Check composer.json for the declared Symfony and PHP constraints before installing.
Does this bundle support Laravel 10 or Laravel 11?
No. The package targets Symfony's bundle and dependency-injection system, not Laravel's service container. Laravel 10 and 11 applications will not auto-discover it and cannot use its Symfony extension definitions directly. Choose a Laravel QR package or a framework-agnostic encoder instead.
What output formats can I generate with this bundle?
The bundle advertises PNG output and template-friendly inline data URIs, with SVG mentioned in its overview. The underlying PHP QR Code library is primarily a GD-based raster encoder, so verify whether SVG output is truly vector or just wrapped. For most embedding use cases, a PNG data URI is the straightforward path.
How do I configure QR code size, margin, and error correction?
The bundle exposes reusable defaults for size, margin, error-correction level, and encoding through Symfony configuration. You set those defaults once and the service uses them for generated codes. Confirm in the bundle source which options are passed through versus hardcoded before relying on them.
Is jonasarts/phpqrcode-bundle actively maintained?
There are strong signs it is not. The repository has very low adoption, and the upstream phpqrcode encoder has been effectively dormant for about a decade. PHP 8.x compatibility is unverified, and legacy procedural code can produce deprecations or fatals. Treat it as a reference implementation rather than a production dependency.
What are the best alternatives for QR codes in Laravel?
For a Laravel-native fast path, simplesoftwareio/simple-qrcode wraps bacon/bacon-qr-code and provides a facade plus publishable config. For zero framework coupling, chillerlan/php-qrcode is a maintained PSR-4 option. If you need a maintained Symfony bundle instead, endroid/qr-code is the relevant comparison.
Does jonasarts/phpqrcode-bundle require the GD extension?
Yes, GD is effectively a hard requirement because the upstream encoder rasterizes PNG output through GD. An Imagick-only or GD-less host will fail rather than degrade gracefully. Check your deployment image and CI environment for GD support before considering it.
Can I use this bundle to render QR codes in templates?
In Symfony, yes: the service can return a data URI that is easy to embed in Twig templates. It is not a Blade directive or Laravel helper, so Laravel templates cannot use it without custom glue. For Blade, use a Laravel package or generate the data URI in a service and pass it to the view.
What PHP versions does this package support?
The declared constraints should be checked in composer.json, but PHP 8.x compatibility is not verified by the package's maintenance posture. The upstream code is old procedural PHP with global class names, which increases upgrade risk. Test on your exact PHP and Symfony matrix before use.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
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