PHPackages                             ozznest/barcode-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ozznest/barcode-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

ozznest/barcode-bundle
======================

Barcode generation bundle wrapping Zend barcode component.

3.1(6y ago)04.5k↓33.3%MITPHPPHP &gt;=7.1

Since Sep 25Pushed 5y agoCompare

[ Source](https://github.com/ozznest/BarcodeBundle)[ Packagist](https://packagist.org/packages/ozznest/barcode-bundle)[ RSS](/packages/ozznest-barcode-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (7)Versions (8)Used By (0)

MarkupBarcodeBundle
===================

[](#markupbarcodebundle)

[![Build Status](https://camo.githubusercontent.com/ae4b983e44dff3e2b200c1f3b0a88ca38c8b14ef1d613a70c0b06479d3ce3555/68747470733a2f2f6170692e7472617669732d63692e6f72672f7573656d61726b75702f426172636f646542756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/usemarkup/BarcodeBundle)

About
-----

[](#about)

This Symfony bundle provides a means of generating barcodes using the [Laminas barcode component](https://docs.laminas.dev/laminas-barcode/) and printing them inline using a data URI. It avoids problems with parts of the Laminas component that retain state and so allows isolated barcode generation in the same execution cycle.

Installation
------------

[](#installation)

Add MarkupBarcodeBundle to your composer.json:

```
{
    "require": {
        "markup/barcode-bundle": "@dev"
    }
}
```

Add MarkupBarcodeBundle to your AppKernel.php:

```
    public function registerBundles()
    {
        $bundles = [
            ...
            new Markup\BarcodeBundle\MarkupBarcodeBundle(),
        ];
        ...
    }
```

Finally, install the bundle using Composer:

```
$ php composer.phar update markup/barcode-bundle
```

Usage
-----

[](#usage)

The bundle works by allowing the declaration of named barcode definitions (specifying the spec being used for the barcode, the output format, etc). These definitions are then referred to when rendering an individual barcode.

Say you had a barcode you needed to generate for an "invoice" in your application. This invoice uses barcodes that were Code 128, and you want to use PNG as the image format for the barcode (PNG is, incidentally, the default).

You can achieve this by declaring the definition in the bundle's semantic configuration:

```
    markup_barcode:
        definitions:
            invoice:
                type: code128
                format: png
```

Alternatively, if you need more flexibility, you can write your own definition class that implements `Markup\BarcodeBundle\Definition\DefinitionInterface` and declare it as a service within your bundle, using a `markup_barcode.definition` tag with a declared alias:

```
    my.barcode_definition:
        class: Me\MyBundle\Barcode\MyInvoiceBarcodeDefinition
        tags:
            - { name: markup_barcode.definition, alias: invoice }
```

Then, within a Twig template, you would use the following Twig filter (`markup_barcode_data_uri`) to generate a barcode from the text you are encoding:

```

```

License
-------

[](#license)

Released under the MIT License. See LICENSE.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~390 days

Recently: every ~372 days

Total

7

Last Release

2308d ago

Major Versions

1.1.1 → 2.0.02016-11-16

2.0.1 → 3.02020-01-31

PHP version history (2 changes)2.0.0PHP &gt;=5.6

3.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/53662425a6d39f5134083c14b86185c8e29b079f17407cfc23d6d4a0826fe0c7?d=identicon)[ozznest](/maintainers/ozznest)

---

Top Contributors

[![shieldo](https://avatars.githubusercontent.com/u/97280?v=4)](https://github.com/shieldo "shieldo (15 commits)")[![JJuszczyk](https://avatars.githubusercontent.com/u/33802769?v=4)](https://github.com/JJuszczyk "JJuszczyk (5 commits)")[![gsdevme](https://avatars.githubusercontent.com/u/319498?v=4)](https://github.com/gsdevme "gsdevme (3 commits)")[![LurkerAtTheGate](https://avatars.githubusercontent.com/u/13590954?v=4)](https://github.com/LurkerAtTheGate "LurkerAtTheGate (1 commits)")[![oznest-ops](https://avatars.githubusercontent.com/u/245680063?v=4)](https://github.com/oznest-ops "oznest-ops (1 commits)")

---

Tags

barcode

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ozznest-barcode-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ozznest-barcode-bundle/health.svg)](https://phpackages.com/packages/ozznest-barcode-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M373](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

65474.5k9](/packages/web-auth-webauthn-symfony-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
