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

markup/barcode-bundle

A Symfony bundle for generating barcodes in PHP applications. It provides configurable rendering of common barcode formats, making it easy to add scannable codes to invoices, labels, and product pages.

View on GitHub
Deep Wiki
Context7

A Symfony2 bundle that provides straightforward barcode generation using the Zend Barcode component.

Frequently asked questions about Barcode Bundle
Is markup/barcode-bundle compatible with Laravel?
No. It is a Symfony2 bundle that relies on AppKernel registration and a DependencyInjection extension, neither of which Laravel's service container or bootstrap/app.php will discover. There is no Laravel service provider, facade, or config publish hook, so Laravel will never boot the bundle's classes. Treat it as incompatible without a rewrite.
How do I install markup/barcode-bundle in a Laravel project?
You cannot install it in a working Laravel app through normal Composer autoloading because Composer will likely fail on modern PHP 8.x due to its constraints and abandoned dependencies. Even if it installs, nothing in Laravel calls the bundle's Symfony-specific wiring. You would have to write your own service provider and replace Zend namespace imports with Laminas, which is more code than the package contains. It is not recommended.
Does markup/barcode-bundle work on PHP 8?
Very unlikely. The package is a thin wrapper over Zend Barcode, which was abandoned upstream after the Zend Framework renamed to Laminas in 2019, and its Composer constraints target older PHP versions. On PHP 8.x you should expect install conflicts or runtime errors. The last tag was February 2020, and there is no security response channel.
What barcode formats does markup/barcode-bundle support?
It delegates rendering to the Zend Barcode component, so support depends on that engine. In practice that covers common 1D formats such as Code128, EAN-13, and UPC, plus some 2D formats depending on the Zend version. For a Laravel project you should confirm the exact symbologies you need and choose a maintained renderer rather than relying on this wrapper.
What are the best Laravel alternatives to markup/barcode-bundle?
Use picqer/php-barcode-generator for 1D formats like Code128, EAN, and UPC with SVG, PNG, or HTML output. For 2D codes use bacon/bacon-qr-code or endroid/qr-code. If you want a Laravel-shaped API, milon/barcode and simplesoftwareio/simple-qrcode provide service providers and facades. If you need Zend or Laminas rendering parity, depend on laminas/laminas-barcode directly.
Can I use Zend Barcode directly in Laravel instead of this bundle?
You should not use the Zend Barcode namespace because it is abandoned. Use laminas/laminas-barcode instead, which is the maintained continuation of the same engine, and call it from your own Laravel service or service provider. That gives you the rendering behavior without the dead Symfony packaging. You still need to verify PHP 8.1 to 8.3 support and GD or Imagick availability in your runtime.
Is markup/barcode-bundle maintained?
No. The repository is effectively unowned, last tagged in February 2020, and has two stars with zero dependents. It wraps Zend Barcode, which is abandoned upstream, and targets Symfony 2.x, which reached end-of-life in November 2018. There is no security response channel or active maintainer.
How do I generate barcodes for invoices or shipping labels in Laravel?
First decide the symbology such as Code128, EAN-13, QR, DataMatrix, or PDF417, and the output surface: HTML img, inline SVG, PDF embedding via DomPDF or TCPDF, or a label-printer pipeline. Then choose a maintained generator such as picqer/php-barcode-generator for 1D and bacon/bacon-qr-code or endroid/qr-code for 2D. Wrap it in a Laravel service or facade if you want a clean API. Confirm scanner fidelity before committing because encoding bugs on invoices are customer-visible.
Why does Composer fail when I try to install markup/barcode-bundle?
Composer is likely to fail on modern PHP 8.x because the package's constraints and its abandoned Zend dependencies conflict with current requirements. The bundle also expects Symfony 2.x conventions that no longer resolve cleanly. Even a successful install would leave you with classes that no Laravel code calls. This is a strong signal to evaluate a maintained alternative instead.
What should I do if I have existing code that depends on markup/barcode-bundle?
Treat migration as a greenfield build rather than a direct swap. The only artifacts worth carrying over are the bundle's default configuration values such as bar height, thin and thick ratios, and image backend, which you can re-express as config/barcode.php in Laravel. Replace the rendering with picqer/php-barcode-generator, bacon/bacon-qr-code, endroid/qr-code, or laminas/laminas-barcode directly. Verify PHP 8.1 to 8.3 support, GD or Imagick availability, and deterministic output for caching keys.
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.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
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
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core