PHPackages                             sarabitcom/fpdf-barcode - 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. sarabitcom/fpdf-barcode

ActiveLibrary

sarabitcom/fpdf-barcode
=======================

library to generate pdf document with barcode support

1.0.1(4y ago)0199↓100%1MITPHP

Since Oct 24Pushed 4y ago1 watchersCompare

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

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

fpdf-barcode
============

[](#fpdf-barcode)

library to generate pdf document with bar-code support

Create Object
=============

[](#create-object)

```
 $pdf = new \Sarabitcom\Fpdf\FpdfCode39('P', 'mm', 'A4');
```

Set Margins
===========

[](#set-margins)

```
  $pdf->SetLeftMargin(68);
  $pdf->SetRightMargin(1);
  $pdf->SetTopMargin(90);
```

Add Page
========

[](#add-page)

 ```
  $pdf->AddPage();

```

Set Headers (Optional)
======================

[](#set-headers-optional)

```
$pdf->SetAuthor('You Name');
$pdf->SetCreator('Sarabit PDF Barcode');
$pdf->SetTitle('Document Title');
$pdf->SetSubject('Document Subject');
```

Add Barcode
===========

[](#add-barcode)

```
 $pdf->Code39(138, 160, "1234567890", 1, 10);
```

Set Image
=========

[](#set-image)

```
$imagePath = "/home/user/yourimage.jpeg"; // Absolute Path
$pdf->Image($imagePath, 0, 0, 210, 297);
```

Set Font
========

[](#set-font)

```
// Normal
$pdf->SetFont('Times', '', 12);
// Bold
$pdf->SetFont('Times', 'B', 11);
// Italic
$pdf->SetFont('Times', 'I', 11);
```

Make Cell
=========

[](#make-cell)

```
$pdf->Text(68, 164, "Your Text Here");
```

Output
======

[](#output)

```
$pdf->Output('file.pdf', 'I');
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

2

Last Release

1661d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cbccf570fe61c61c686018a512aeca8e8dd8b2e7cf4e4caa08229e208c06329?d=identicon)[sarabitcom](/maintainers/sarabitcom)

---

Top Contributors

[![gsazad](https://avatars.githubusercontent.com/u/70735102?v=4)](https://github.com/gsazad "gsazad (13 commits)")[![sarabitcom](https://avatars.githubusercontent.com/u/62785835?v=4)](https://github.com/sarabitcom "sarabitcom (13 commits)")[![adsazad](https://avatars.githubusercontent.com/u/56344400?v=4)](https://github.com/adsazad "adsazad (2 commits)")

### Embed Badge

![Health badge](/badges/sarabitcom-fpdf-barcode/health.svg)

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

PHPackages © 2026

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