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

Barcode Bundle Laravel Package

mopa-liip/barcode-bundle

MopaBarcodeBundle brings barcode generation to Symfony apps, wrapping popular barcode libraries in services and Twig helpers so you can render QR, EAN, Code39, and other formats as PNG, SVG, or HTML from templates or controllers with minimal configuration.

View on GitHub
Deep Wiki
Context7

Integrates Zend_Barcode and PHP QR Lib to be easily used in symfony2 via twig

Frequently asked questions about Barcode Bundle
Can I use mopa-liip/barcode-bundle in a Laravel application?
No, not directly. It is a Symfony2 bundle that ships a Bundle class, a DI extension and YAML/XML service definitions, and Laravel has no bundle mechanism to register any of that. There is no service provider, facade, publishable config or Blade directive, so you would end up calling the underlying Zend_Barcode and PHP QR Lib classes directly. At that point the package adds nothing you could not write yourself in an afternoon.
Does this package support Laravel 10, 11 or 12?
It supports none of them. The bundle targets Symfony2, and its dependencies, Zend_Barcode from Zend Framework 1 (EOL since 2016) and PHP QR Lib, predate modern Composer and PSR-4 autoloading. Composer resolution under Laravel 10+ will typically fail without shims, vendoring or a fork.
Which barcode formats does MopaBarcodeBundle generate?
It exposes whatever the two wrapped libraries provide: QR codes through PHP QR Lib, plus EAN, Code39, Code128 and other linear symbologies through Zend_Barcode. Output can be rendered as PNG, SVG or HTML from a Twig template or a controller. Note that there is no test suite here verifying that generated codes actually scan.
What license is mopa-liip/barcode-bundle released under?
Composer reports NOASSERTION, which means no license is declared in the package metadata. Legal teams generally cannot approve redistribution or derivative works without manually auditing the upstream Zend Framework 1 and PHP QR Lib terms. For most enterprises that is a blocker regardless of code quality.
How do I install mopa-liip/barcode-bundle?
Under Symfony2 you would require it in composer.json and register the bundle in AppKernel. Under Laravel there is no supported install path at all: the service wiring is Symfony-specific and the ZF1-era dependencies do not resolve cleanly on Composer 2. Realistically you would vendor or fork the code and strip the integration layer, which costs more than writing the equivalent yourself.
Is mopa-liip/barcode-bundle maintained and safe for production?
No. It has roughly one star, zero dependents, no tagged releases, no issue triage and no CVE monitoring, so effectively nobody is watching the code. It also inherits the abandonment of both underlying libraries. Barcode generation fails silently when it fails at all, producing output that renders but does not scan, and there are no tests here to catch symbology or encoding regressions.
What is the best Laravel alternative for generating barcodes?
Pick a maintained, MIT-licensed generator and wrap it behind your own interface so the choice stays swappable. For Code128, EAN and ITF, picqer/php-barcode-generator is the common choice; for QR, bacon/bacon-qr-code or endroid/qr-code. If you want Blade conveniences out of the box, milon/barcode and simplesoftwareio/simple-qrcode both work. All are PSR-4, PHP 8.x native and have real dependent counts.
How do I render a barcode or QR code in a Blade template?
This package cannot help you there, because its only template integration is a Twig extension. In Laravel you would call your chosen generator from a controller or a small service class and return the image response, or emit an inline data URI from a Blade component. Client-side QR generation in JavaScript is also an option that removes the server dependency entirely.
Does this package work on PHP 8.1, 8.2 or 8.3?
Not without patching. The ZF1-derived code triggers typed-property and return-type deprecations throughout, and the pre-PSR-4 autoloading will not resolve cleanly under modern Composer. Rendering also needs the GD or Imagick extension plus writable font paths in every target environment, which are common production gaps. If a legacy fork is unavoidable, pin it to a tagged internal release so upgrades stay deliberate.
Should I generate barcodes server-side or client-side?
It depends on your constraints. If you only need QR codes displayed in a browser, generating them client-side removes the server dependency altogether. Server-side rendering wins when you need PNG or PDF output, archived images, or symbologies like EAN-13 and GS1-128 that must be validated. If a compliance driver such as GS1, FDA UDI or carrier specifications applies, a single-maintainer bundle is disqualified on its face.
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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons