PHPackages                             cibincasso/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. cibincasso/barcode-bundle

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

cibincasso/barcode-bundle
=========================

Symfony2 Barcode Generator Bundle with Twig function extension

1.0(9y ago)012.8k1MITPHPPHP &gt;=5.3.2

Since Jun 14Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (2)Used By (0)

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

[](#sgkbarcodebundle)

CibincassoBarcodeBundle is the Symfony2 Barcode Generator Bundle what you want! This README is also available in French ([Français](Resources/doc/README_fr.md)) and Chinese ([中文](Resources/doc/README_zh-CN.md)).

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 use this laravel project: [dinesh/barcode](https://github.com/dineshrabara/barcode)s [![SGKBarcodeBundle](Resources/doc/README.png)](Resources/doc/README.png)

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

[](#installation)

Add SGKBarcodeBundle by running the command:

```
// Symfony version = 2.7
$ php composer.phar require sgk/barcode-bundle:~2.0
```

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

```
// Symfony version < 2.7
"require": {
        "sgk/barcode-bundle": "~1.0"
    }

// Symfony version >= 2.7
"require": {
        "sgk/barcode-bundle": "~2.0"
    }
```

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

Then, Enable the bundle in the kernel:

```
