PHPackages                             bitgrave/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bitgrave/barcode-generator

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

bitgrave/barcode-generator
==========================

simple barcode generator base classes supporting 2d- and datamatrix barcodes

1.0.3(9y ago)1313.7k11[1 PRs](https://github.com/paterik/BGBarcodeGenerator/pulls)GNU-LGPLv3PHPPHP &gt;=5.3.0CI failing

Since Aug 28Pushed 1y agoCompare

[ Source](https://github.com/paterik/BGBarcodeGenerator)[ Packagist](https://packagist.org/packages/bitgrave/barcode-generator)[ RSS](/packages/bitgrave-barcode-generator/feed)WikiDiscussions master Synced 1mo ago

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

BGBarcodeGenerator Class
========================

[](#bgbarcodegenerator-class)

PHP5+ refactored code version of Dinesh Rabara's 2D-3D Barcode Generator class/lib. This barcode generator class supports ImageMagick/GDLib based image rendering, svg and html table drawn output of the following 1D/2D bar codes: Due to some licensing problems of origin pre-refactored code base we've to decide to change the base license from MIT to GNU-LGPLv3. You can found the TCPDF source license under LICENSE.TCPDF and the current (project) license under LICENSE

[![Build Status](https://camo.githubusercontent.com/580cb7859ffbaa2f74d144cc46bdb6342bf66d6d1cbbf1b3d6e98398b005bd12/68747470733a2f2f7472617669732d63692e6f72672f7061746572696b2f4247426172636f646547656e657261746f722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/paterik/BGBarcodeGenerator)

1D barcodes
-----------

[](#1d-barcodes)

- C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.
- C39+ : CODE 39 with checksum
- C39E : CODE 39 EXTENDED
- C39E+ : CODE 39 EXTENDED + CHECKSUM
- C93 : CODE 93 - USS-93
- S25 : Standard 2 of 5
- S25+ : Standard 2 of 5 + CHECKSUM
- I25 : Interleaved 2 of 5
- I25+ : Interleaved 2 of 5 + CHECKSUM
- C128 : CODE 128
- C128A : CODE 128 A
- C128B : CODE 128 B
- C128C : CODE 128 C
- EAN2 : 2-Digits UPC-Based Extention
- EAN5 : 5-Digits UPC-Based Extention
- EAN8 : EAN 8
- EAN13 : EAN 13
- UPCA : UPC-A
- UPCE : UPC-E
- MSI : MSI (Variation of Plessey code)
- MSI+ : MSI + CHECKSUM (modulo 11)
- POSTNET : POSTNET
- PLANET : PLANET
- RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)
- KIX : KIX (Klant index - Customer index)
- IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200
- CODABAR : CODABAR
- CODE11 : CODE 11
- PHARMA : PHARMACODE
- PHARMA2T : PHARMACODE TWO-TRACKS

2D barcodes
-----------

[](#2d-barcodes)

- DATAMATRIX : Datamatrix (ISO/IEC 16022)
- PDF417 : PDF417 (ISO/IEC 15438:2006) / a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6
- QRCODE : QRcode Low error correction
- QRCODE, L : QRcode Low error correction
- QRCODE, M : QRcode Medium error correction
- QRCODE, Q : QRcode Better error correction
- QRCODE, H : QR-CODE Best error correction
- QR, RAW : raw mode - comma-separad list of array rows
- QR, RAW2 : raw mode - array rows are surrounded by square parenthesis.

How To Contribute
-----------------

[](#how-to-contribute)

To contribute changes, fixes, additions/features please open a pull request with your new code. please take not, that if you add new features or modify existing ones you have to doc this in projects README file (also update projects CHANGELOG file!)

License
-------

[](#license)

See: LICENSE

Notes
-----

[](#notes)

on any open questions or problems feel free to contact me directly or just open an issue ...

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~190 days

Total

3

Last Release

3536d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87bd61dc79af606ee4f9fc5612c646a8c9e89f1727ad61cc2074fab46e3a32d5?d=identicon)[paterik](/maintainers/paterik)

---

Top Contributors

[![paterik](https://avatars.githubusercontent.com/u/2572857?v=4)](https://github.com/paterik "paterik (14 commits)")[![dineshrabara](https://avatars.githubusercontent.com/u/1228130?v=4)](https://github.com/dineshrabara "dineshrabara (6 commits)")[![JessileyOliveira](https://avatars.githubusercontent.com/u/8670353?v=4)](https://github.com/JessileyOliveira "JessileyOliveira (4 commits)")[![davewalker235](https://avatars.githubusercontent.com/u/1647866?v=4)](https://github.com/davewalker235 "davewalker235 (2 commits)")[![wodka](https://avatars.githubusercontent.com/u/385731?v=4)](https://github.com/wodka "wodka (2 commits)")[![gkalika](https://avatars.githubusercontent.com/u/156466090?v=4)](https://github.com/gkalika "gkalika (1 commits)")[![faustot](https://avatars.githubusercontent.com/u/7861667?v=4)](https://github.com/faustot "faustot (1 commits)")[![janmaennig](https://avatars.githubusercontent.com/u/5433846?v=4)](https://github.com/janmaennig "janmaennig (1 commits)")

---

Tags

qrcodegeneratordatamatrixpdf417barcode

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bitgrave/barcode-bundle

provide barcode rendering service into your Symfony2 application.

25444.0k1](/packages/bitgrave-barcode-bundle)[jucksearm/php-barcode

Barcode Generation Package inspired by Nicola Asuni.

12362.6k1](/packages/jucksearm-php-barcode)

PHPackages © 2026

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