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)15192.1k↓38.9%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 2d 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

38

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity43

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

3494d 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

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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