PHPackages                             maxencebeno/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. [Templating &amp; Views](/categories/templating)
4. /
5. maxencebeno/barcode-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

maxencebeno/barcode-bundle
==========================

Symfony 4 &amp; 5 Barcode Generator Bundle with Twig function extension

v2.0.3(3y ago)037Apache-2.0PHPPHP &gt;=5.5.9|^8.0

Since May 29Pushed 2y agoCompare

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

READMEChangelog (1)Dependencies (4)Versions (6)Used By (0)

SGKBarcodeBundle
================

[](#sgkbarcodebundle)

SGKBarcodeBundle is a Symfony3 / 4 Barcode Generator Bundle.

Features:

1. Support 3 two-dimensional (2D) and 30 one-dimensional (1D) Barcode types
2. Three output formats: HTML, PNG and SVG canvas
3. Twig integration: you can simply use a extensional function of Twig in the template to generate Barcode
4. Core of this bundle from this project [tc-lib-barcode](https://github.com/tecnickcom/tc-lib-barcode)

[![SGKBarcodeBundle](Resources/doc/README.png)](Resources/doc/README.png)

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

[](#installation)

Add SGKBarcodeBundle by running the command:

```
$ php composer.phar require sgk/barcode-bundle:v2.0.0
```

Or, add SGKBarcodeBundle to your `composer.json`, then execute `php composer.phar update`

```
"require": {
        "sgk/barcode-bundle": "v2.0.0"
    }
```

Composer will install the bundle to your project's vendor/sgk directory.

Then, Enable the bundle in the kernel:

```
