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

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

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

1.0.1(8y ago)17.3kLGPL-3.0PHPPHP &gt;=5.4.0

Since Jun 8Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

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

[](#php-barcode-generator)

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

It creates PNG from the most used 1D barcode standards.

- The codebase is largely from the [picqer/php-barcode-generator](https://github.com/picqer/php-barcode-generator)by Casper Bakker.

Prerequisities
--------------

[](#prerequisities)

- GD Library installed

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

[](#installation)

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

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

```

Usage
-----

[](#usage)

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

```
$generator = new Picqer\Barcode\BarcodeGeneratorPNG();
echo $generator->getBarcode('081231723897', $generator::TYPE_CODE_128);
```

The -&gt;getBarcode() routine accepts the following:

- $code Data for the barcode
- $type Type of barcode, use the constants defined in the class
- $widthFactor Width is based on the length of the data, with this factor you can make the barcode bars wider than default
- $totalHeight The total height of the barcode
- $color Hex code of the foreground color
- $showCode Display barcode content as text

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~255 days

Total

2

Last Release

3047d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64a880caaffe510a647f7ae7da515846fc661fe10744b17a981ddbc47bbae4df?d=identicon)[jfilla](/maintainers/jfilla)

---

Top Contributors

[![jfilla](https://avatars.githubusercontent.com/u/5280477?v=4)](https://github.com/jfilla "jfilla (2 commits)")

---

Tags

phphtmlsvgbarcodepngEAN13jpegeanbarcode generatorCODABARupcjpgPharmacode39Standard 2 of 5MSIPOSTNETKIXcode128Code93KIXCODECode11

### Embed Badge

![Health badge](/badges/jfilla-php-barcode-generator/health.svg)

```
[![Health](https://phpackages.com/badges/jfilla-php-barcode-generator/health.svg)](https://phpackages.com/packages/jfilla-php-barcode-generator)
```

###  Alternatives

[picqer/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.

1.8k27.4M109](/packages/picqer-php-barcode-generator)[tecnickcom/tc-lib-barcode

PHP library to generate linear and bidimensional barcodes

2947.5M39](/packages/tecnickcom-tc-lib-barcode)[choowx/rasterize-svg

A PHP library for converting SVG to JPEG, PNG, and WEBP

2275.4k](/packages/choowx-rasterize-svg)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
