PHPackages                             fobiaweb/barcode39 - 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. fobiaweb/barcode39

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

fobiaweb/barcode39
==================

Code 39 Barcode Image Generator

v1.2(9y ago)16186.5k↓37.3%9[1 issues](https://github.com/fobiaweb/Barcode39/issues)PHPPHP &gt;=5.3.0

Since May 8Pushed 9y ago4 watchersCompare

[ Source](https://github.com/fobiaweb/Barcode39)[ Packagist](https://packagist.org/packages/fobiaweb/barcode39)[ Docs](http://www.shayanderson.com/php/php-barcode-generator-class-code-39.htm)[ RSS](/packages/fobiaweb-barcode39/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

PHP Barcode Generator Class Code 39
===================================

[](#php-barcode-generator-class-code-39)

Here is an easy to use PHP barcode generator class for code 39 barcodes.

[PHP Barcode Generator Class Code 39](http://www.shayanderson.com/php/php-barcode-generator-class-code-39.htm)

Installation
============

[](#installation)

This package can be installed easily using [Composer](http://getcomposer.org). Simply add the following to the `composer.json` file at the root of your project:

```
{
  "require": {
    "fobiaweb/barcode39": "*"
  }
}

```

Then install your dependencies using `composer.phar install`.

Requirements:
=============

[](#requirements)

PHP Web server and [GD Library](http://php.net/manual/en/book.image.php) (Graphics Library).

Documentation
=============

[](#documentation)

The PHP class will create a GIF barcode image or save a GIF barcode image file, here is an example:

```
// include Barcode39 class
include "Barcode39.php";

// set Barcode39 object
$bc = new Barcode39("Shay Anderson");

// display new barcode
$bc->draw();

```

This example will output this barcode:

[![barcode39](doc/barcode39.gif "barcode39")](doc/barcode39.gif)

You can also easily adjust the barcode bar sizes and text size:

```
// set object
$bc = new Barcode39("123-ABC");

// set text size
$bc->barcode_text_size = 5;

// set barcode bar thickness (thick bars)
$bc->barcode_bar_thick = 4;

// set barcode bar thickness (thin bars)
$bc->barcode_bar_thin = 2;

// save barcode GIF file
$bc->draw("barcode.gif");

```

This example will save this barcode as "barcode.gif":

[![barcode39](doc/php-barcode39.gif "barcode39")](doc/php-barcode39.gif)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~473 days

Total

3

Last Release

3448d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8872d9ec77d4990b20dbde810f239399118d6c11daadd4da833dcb15f7f7621c?d=identicon)[fobia](/maintainers/fobia)

---

Top Contributors

[![tyurind](https://avatars.githubusercontent.com/u/2355982?v=4)](https://github.com/tyurind "tyurind (7 commits)")[![noxss](https://avatars.githubusercontent.com/u/4060137?v=4)](https://github.com/noxss "noxss (1 commits)")

### Embed Badge

![Health badge](/badges/fobiaweb-barcode39/health.svg)

```
[![Health](https://phpackages.com/badges/fobiaweb-barcode39/health.svg)](https://phpackages.com/packages/fobiaweb-barcode39)
```

###  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)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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