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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hackzilla/barcode-bundle
========================

Barcode Generator Bundle

v2.0.0(10y ago)10228.3k—4.7%6[1 issues](https://github.com/hackzilla/BarcodeBundle/issues)GPL-2.0+PHPPHP &gt;=5.3.2

Since Mar 21Pushed 7y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (16)Used By (0)

Barcode Bundle
==============

[](#barcode-bundle)

Generate barcodes as html, image or text.

Fork of Folke Ashberg's PHP Barcode v0.4 \[\]

For usage and examples see: [Examples](Resources/doc/index.md)

[![Build Status](https://camo.githubusercontent.com/7445bc6aa6738a4291e15aad21b37a29f9cd213a2bc790a4b81233a7681b3c40/68747470733a2f2f7472617669732d63692e6f72672f6861636b7a696c6c612f426172636f646542756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/hackzilla/BarcodeBundle)[![SensioLabsInsight](https://camo.githubusercontent.com/b671d9b4d4299d2f6570326be5d6ef474b6a388664708cf4278d72443a990227/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35303136323034302d333637372d343664332d613939612d6165613630303932346562312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/50162040-3677-46d3-a99a-aea600924eb1)

### Requirements

[](#requirements)

- PHP 5.3.2

#### Optional

[](#optional)

- GD Lib
- genbarcode

If you want to generate not only EAN-12/EAN-13/ISBN-Codes you have to install genbarcode, a small unix-commandline tool which uses GNU-Barcode. genbarcode is available  , read genbarcodes README for installation. If you have installed genbarcode not to `/usr/local/bin` call `$barcode->setGenbarcodeLocation('/usr/local/bin/genbarcode')`

### Step 1: Installation

[](#step-1-installation)

Install Composer

```
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

```

Now tell composer to download the bundle by running the command:

```
$ composer require hackzilla/barcode-bundle ~2.0
```

Composer will add the bundle to your composer.json file and install it into your project's `vendor/hackzilla` directory.

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Enable the bundle in the kernel:

```
