PHPackages                             luisbmemorandum/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. luisbmemorandum/php-barcode-generator

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

luisbmemorandum/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.

v2.0.2(5y ago)0394LGPL-3.0-or-laterPHPPHP &gt;=7.2.0

Since Aug 13Pushed 5y agoCompare

[ Source](https://github.com/luisbmemorandum/php-barcode-generator)[ Packagist](https://packagist.org/packages/luisbmemorandum/php-barcode-generator)[ Docs](https://github.com/picqer/php-barcode-generator)[ RSS](/packages/luisbmemorandum-php-barcode-generator/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (10)Used By (0)

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

[](#php-barcode-generator)

[![Build Status](https://camo.githubusercontent.com/d1d75efe07313ca7dca2005b482392f90d5cb8e31aacff68f87f35d0de3ade81/68747470733a2f2f7472617669732d63692e6f72672f7069637165722f7068702d626172636f64652d67656e657261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/picqer/php-barcode-generator) [![Github Actions](https://github.com/picqer/php-barcode-generator/workflows/phpunit/badge.svg)](https://travis-ci.org/picqer/php-barcode-generator) [![Total Downloads](https://camo.githubusercontent.com/de932465e39d40e2fc2681bab7d0f2caab78264e7672e333bdc461cd377f4b11/68747470733a2f2f706f7365722e707567782e6f72672f7069637165722f7068702d626172636f64652d67656e657261746f722f646f776e6c6f616473)](https://packagist.org/packages/picqer/php-barcode-generator)

This is an easy to use, non-bloated, framework independent, barcode generator in PHP.

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)

We do not support any 2D barcodes, like QR codes. We also only generate the 'bars' part of a 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.

```
