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

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

ss-mokumoku/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.2.4.1(2y ago)07LGPL-3.0-or-laterPHPPHP ^7.3|^8.0

Since Jun 25Pushed 2y agoCompare

[ Source](https://github.com/ss-mokumoku/php-barcode-generator)[ Packagist](https://packagist.org/packages/ss-mokumoku/php-barcode-generator)[ Docs](https://github.com/ss-mokumoku/php-barcode-generator)[ GitHub Sponsors](https://github.com/casperbakker)[ RSS](/packages/ss-mokumoku-php-barcode-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

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

[](#php-barcode-generator)

[![Build Status](https://camo.githubusercontent.com/833fdc7f525d26c21056bb6bd74129829d4a4806b3258fc4c7dcaa1e7a86da40/68747470733a2f2f7472617669732d63692e6f72672f7069637165722f7068702d626172636f64652d67656e657261746f722e7376673f6272616e63683d6d61696e)](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)

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

```
