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

idci/barcode-bundle

A Symfony bundle for generating barcodes, wrapping popular PHP barcode libraries behind a simple service and Twig helpers. Render common symbologies such as EAN, UPC, Code 128 and QR directly in your templates, with configurable output formats for embedding in views, PDFs or downloads.

View on GitHub
Deep Wiki
Context7

Symfony2 Barcode Generator Bundle using Twig function extension

Frequently asked questions about Barcode Bundle
Is idci/barcode-bundle a Laravel package?
No. It is a Symfony 2 bundle whose integration surface is AppKernel bundle registration, a DependencyInjection extension loading YAML/XML service definitions, and a Twig function extension. Laravel exposes none of those primitives: Blade is not Twig, service providers are not the bundle lifecycle, and config/*.php is not Symfony bundle config. Treat it as a Symfony-only package and do not add it to a Laravel composer.json.
Can I use this barcode bundle in a Laravel project with TwigBridge?
Technically you could pull in rcrowe/twigbridge, boot a Symfony-style container shim, and call the bundle's Twig function from Blade, but that imports an entire templating engine and container layer to satisfy one feature. It also does not solve the underlying composer constraint collisions with modern Illuminate versions. Reject this path on dependency tax alone.
Why does composer require idci/barcode-bundle fail in a Laravel app?
The bundle dates from the Symfony 2 era, so its constraints almost certainly pin symfony/symfony to a 2.x line and depend on old psr/* packages. Those requirements collide with Illuminate and the rest of a modern dependency graph, so Composer will either fail to resolve or force dangerous downgrades. Check the exact composer.json constraints before scheduling any spike.
What license does idci/barcode-bundle use, and is GPL-3.0 a problem for Laravel apps?
The package is GPL-3.0, which is strong copyleft. Any distributed artifact, including on-prem delivery, customer-shipped containers, or packaged binaries, carries a source-disclosure obligation that cannot be engineered away. That is a legal determination rather than an engineering one, and it should be cleared before any technical work begins.
Which barcode symbologies and output formats does the bundle support?
The bundle advertises configurable symbologies including EAN, UPC, Code 128, Code 39, and QR, with output in PNG, SVG, and HTML. Output formats matter operationally: inline SVG is far cheaper to serve and embed in PDFs than raster PNG generation. Verify the exact matrix and rendering path against the source rather than the README before relying on any format.
What actually renders the barcode image in this Symfony bundle?
That is one of the first things you must confirm from the source. Bundles of this vintage often inline rendering into the Twig extension or shell out to GD, TCPDF, ImageMagick, or an external CLI binary. The answer determines your deployment footprint, your container image size, and your failure modes, and it also decides whether the generation core is separable at all.
Is idci/barcode-bundle still maintained and safe for production?
It has roughly no dependents, a negligible install score, and no meaningful community or maintainer lineage. It targets Symfony 2, which reached end of life in 2018, and it is PHP 5.x-era code with no security response process. The durable risk is abandonment: nobody will absorb a compatibility or vulnerability break for you.
What should I use instead for barcode and QR generation in Laravel?
Use framework-agnostic, MIT-licensed libraries: picqer/php-barcode-generator for 1D symbologies and endroid/qr-code for 2D. If you want zero provider code, milon/barcode and simplesoftwareio/simple-qrcode are Laravel-native wrappers that ship service providers and facades. All of these are maintained and avoid the GPL and Symfony 2 constraints entirely.
Can I fork idci/barcode-bundle and extract the generator into a Laravel service provider?
Only if the generation core is cleanly separable from the Twig extension and Symfony service wiring, which is a coin flip for bundles of this age. The work is effectively a rewrite of the integration surface, not a configuration change: strip bundle metadata, isolate the generator, then re-expose it behind a service provider and a Blade component. It is rarely cheaper than adopting a maintained library that already does the job.
How do you install and configure this bundle in Symfony, and can that translate to Laravel?
In Symfony you register the bundle in AppKernel, load the bundle's service definitions, and call the Twig helper in templates, with symbology and output format controlled through bundle config. None of that maps to Laravel: bundle registration becomes a service provider, Twig calls become Blade directives, and YAML bundle config becomes a PHP config file. Every layer of the integration contract is mismatched, so there is no drop-in translation.
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.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
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