PHPackages                             shaunluedeke/php-barcode-generator - 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. [Image &amp; Media](/categories/media)
4. /
5. shaunluedeke/php-barcode-generator

ActiveLibrary[Image &amp; Media](/categories/media)

shaunluedeke/php-barcode-generator
==================================

An easy to use, non-bloated, barcode generator in PHP. Creates SVG, PNG, JPG and HTML images from the most used 1D barcode standards.

06.0k↓33.3%[1 PRs](https://github.com/shaunluedeke/php-barcode-generator/pulls)PHP

Since Aug 30Pushed 1y agoCompare

[ Source](https://github.com/shaunluedeke/php-barcode-generator)[ Packagist](https://packagist.org/packages/shaunluedeke/php-barcode-generator)[ RSS](/packages/shaunluedeke-php-barcode-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Barcode Generator
=====================

[](#php-barcode-generator)

[![Build Status](https://github.com/picqer/php-barcode-generator/workflows/phpunit/badge.svg)](https://github.com/picqer/php-barcode-generator/actions)[![Total Downloads](https://camo.githubusercontent.com/3450af50c8d751b267c449502a2db8332f8467561e5b06af596f0fbab6b0f7cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7069637165722f7068702d626172636f64652d67656e657261746f72)](https://packagist.org/packages/picqer/php-barcode-generator)[![Latest Stable Version](https://camo.githubusercontent.com/e5f516a6f6b385c32fbf32aa8996efe0b2d14b7a3cc65b4b38e93d735919ae48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7069637165722f7068702d626172636f64652d67656e657261746f72)](https://packagist.org/packages/picqer/php-barcode-generator)

This is an easy to use, non-bloated, framework independent, barcode generator in PHP. It uses zero(!) composer dependencies and is only a handful of files. Probably the reason that this is the most downloaded barcode generator for PHP on Packagist. ;)

It creates SVG, PNG, JPG and HTML images, from the most used 1D barcode standards.

*The codebase is based on the [TCPDF barcode generator](https://github.com/tecnickcom/TCPDF) by Nicola Asuni. This code is therefor licensed under LGPLv3.*

No support for...
-----------------

[](#no-support-for)

- No support for any **2D** barcodes, like QR codes.
- We only generate the 'bars' part of a barcode, without text below the barcode. If you want text of the code below the barcode, you could add it later to the output of this package.

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

[](#installation)

Install through [composer](https://getcomposer.org/doc/00-intro.md):

```
composer require picqer/php-barcode-generator

```

If you want to generate PNG or JPG images, you need the GD library or Imagick installed on your system as well.

Usage
-----

[](#usage)

Initiate the barcode generator for the output you want, then call the -&gt;getBarcode() routine as many times as you want.

```
