2amigos/qrcode-library
QrCode Generator
4.0.0
1.6M downloads/mo
#4552 most downloaded on Packagist
2amigos/qrcode-library
What this package is like to depend on
Last release 2 months ago
18 Jun 2026
Release timing varies
gaps range from 2 months to 3.5 years
Some releases are documented
notes for 6 of 14 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
15 releases · first in 2014
1 release in the last 12 months
see the full history below
Release timeline
15 releases · May 2014 to Jun 2026Releases
latest 15-
4.0.018 Jun 2026Release notes
Open source →4.0.0 — PHP 8.3–8.5 support, GD-native rendering & modernization.
⚠️ Major release with breaking changes. Read the Upgrade Guide before upgrading from 3.x.
Delivered by #75 (version corrected in #76) · Epic #74 · Closes #73, #68, #69, #34, #32.
Added
- Pure-GD render backend
Da\QrCode\Renderer\GdImageBackEnd— PNG/JPG no longer require ImageMagick (onlyext-gd). Fixes the WindowsRegistryKeyLookupFailed 'CoderModulesPath'error (#68). - Framework-agnostic PSR-15
Da\QrCode\Bridge\Psr\QrCodeActionfor Yii3 and any PSR-15 app (Mezzio, Slim, …). - vCard
PHOTOvia Base64 / data-URI / local file (#69); MeCardORGfield (#34); troubleshooting guide answering #32.
Changed
- Requires PHP 8.3 / 8.4 / 8.5 (dropped < 8.3).
- Dropped
marc-mabe/php-enum—Enums\*keep the same constants (no API change). bacon/bacon-qr-code→^3,khanamiryan/qrcode-detector-decoder→^2.- PNG/JPG render with GD by default; ImageMagick is opt-in via the writer constructor.
- Framework adapters reorganized under
Da\QrCode\Bridge\<Framework>\(Yii2 / Laravel / Psr); dropped redundantLaravelclass-name prefixes. StyleManager::getGradientTye()→getGradientType()(deprecated alias kept);QrCode::getGradientType()now returns aGradientType.- Modern toolchain: php-cs-fixer v3, PHPStan, CI matrix on 8.3/8.4/8.5.
Fixed
- Radial / inverse-diagonal gradients rendering as solid black.
Bridge\Laravel\QrCodeFactoryworks standalone when Laravel'sconfig()is unbound.
Full changelog: CHANGELOG.md · Upgrade: UPGRADE-4.0.md
Release notes
Open source →Added
- Enh #69: vCard
PHOTOnow supports Base64 /data:URIs and local image files, inlined as aPHOTO:data:<mime>;base64,...line, in addition to the previous remote-URL behaviour (tonydspaniard) - Enh #34:
MeCardFormatgains anorganizationproperty, emitted as anORG:entry only when set (tonydspaniard) - Doc #32: Documented how to save / right-click-save the generated QR using
writeFile()andwriteDataUri()(tonydspaniard) - New pure-GD render backend
Da\QrCode\Renderer\GdImageBackEnd(tonydspaniard) - New framework-agnostic PSR-15
Da\QrCode\Bridge\Psr\QrCodeAction(aRequestHandlerInterface) for Yii3 and any PSR-15 app (Mezzio, Slim, ...) (tonydspaniard)
Changed
- Reorganized framework adapters under
Da\QrCode\Bridge\<Framework>\(Yii2, Laravel, Psr); dropped redundantLaravelclass-name prefixes. See UPGRADE-4.0 §7 for the namespace map (tonydspaniard) - Enh #73: Require PHP 8.3, 8.4 or 8.5; dropped support for everything below 8.3 (tonydspaniard)
- Dropped the
marc-mabe/php-enumdependency;Enums\*classes are now plainfinal classes exposing the samepublic constvalues (tonydspaniard) - Bumped
bacon/bacon-qr-codeto^3andkhanamiryan/qrcode-detector-decoderto^2(tonydspaniard) PngWriterandJpgWriternow render with the GD backend by default; ImageMagick is opt-in via the writer constructor (tonydspaniard)- Renamed the misspelled
StyleManager::getGradientTye()togetGradientType(), keeping a deprecatedgetGradientTye()alias until 3.0 (tonydspaniard) QrCode::getGradientType()now returns aBaconQrCode\Renderer\RendererStyle\GradientTypeinstead of astring(tonydspaniard)LaravelQrCodeFactorynow degrades gracefully to sensible defaults when Laravel'sconfig()helper is not bound, so it can also be used standalone (tonydspaniard)
Fixed
- Fix #68: PNG/JPG output no longer requires ImageMagick, avoiding the Windows
RegistryKeyLookupFailed 'CoderModulesPath'error; onlyext-gdis needed (tonydspaniard) - Fixed radial and inverse-diagonal gradients rendering as solid black: the margin whitespace-trim looked for the exact foreground colour, which is absent at the edges of those gradients (tonydspaniard)
- Pure-GD render backend
-
3.1.013 Dec 2023 -
3.0.220 Oct 2023 -
3.0.118 Oct 2023Release notes
Open source →SVG Format can have labels and logos now;
Added functionality to set background, foreground and label to yii action;
Added alpha option to foreground color; -
3.0.024 Aug 2023 -
3.0.0-beta19 Aug 2023 pre-release -
2.0.031 Jan 2020Nothing published for this version
-
1.1.225 Aug 2017Nothing published for this version
-
1.1.125 Aug 2017Nothing published for this version
-
1.1.025 Aug 2017 -
1.0.321 Jun 2017Nothing published for this version
-
1.0.216 Mar 2015Nothing published for this version
-
1.0.115 Mar 2015Nothing published for this version
-
1.0.015 Mar 2015Nothing published for this version
-
0.1.021 May 2014Nothing published for this version