PHPackages                             fpdf/fpdf - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. fpdf/fpdf

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

fpdf/fpdf
=========

FPDF Composer Wrapper

1.86.1(6mo ago)572.9M↓36.7%2520MITPHPPHP &gt;=5.6.0

Since Feb 13Pushed 6mo ago4 watchersCompare

[ Source](https://github.com/coreydoughty/Fpdf)[ Packagist](https://packagist.org/packages/fpdf/fpdf)[ Docs](https://github.com/coreydoughty/Fpdf)[ RSS](/packages/fpdf-fpdf/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (15)Used By (20)

FPDF Wrapper Class
==================

[](#fpdf-wrapper-class)

A composer wrapper around the great php FPDF class. All credit to them.

[FPDF Website](http://www.fpdf.org/)

Currently uses FPDF 1.86.

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

[](#installation)

Add to your "**composer.json**" file under the "**require**" section:

```
"fpdf/fpdf": "^1.86"

```

Update composer

```
php composer.phar update
```

Usage
-----

[](#usage)

In your php file that you want to use the class add a use statement.

```
use Fpdf\Fpdf;
```

Then use as per the FPDF documentation.

```
$pdf = new Fpdf();
```

Alternatively you can extend as a typical php class.

```
class CustomPdf extends Fpdf
{
    public function __construct(
        $orientation = 'P',
        $unit = 'mm',
        $size = 'letter'
    ) {
        parent::__construct( $orientation, $unit, $size );
        // ...
    }
}
```

### License FPDF

[](#license-fpdf)

```
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software to use, copy, modify, distribute, sublicense, and/or sell
copies of the software, and to permit persons to whom the software is furnished
to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.

```

###  Health Score

59

—

FairBetter than 98% of packages

Maintenance69

Regular maintenance activity

Popularity56

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 72.9% 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 ~219 days

Recently: every ~283 days

Total

14

Last Release

183d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1572454?v=4)[Corey Doughty](/maintainers/coreydoughty)[@coreydoughty](https://github.com/coreydoughty)

---

Top Contributors

[![coreydoughty](https://avatars.githubusercontent.com/u/1572454?v=4)](https://github.com/coreydoughty "coreydoughty (43 commits)")[![erikn69](https://avatars.githubusercontent.com/u/4933954?v=4)](https://github.com/erikn69 "erikn69 (7 commits)")[![asafov](https://avatars.githubusercontent.com/u/6398912?v=4)](https://github.com/asafov "asafov (3 commits)")[![PaolaRuby](https://avatars.githubusercontent.com/u/79208489?v=4)](https://github.com/PaolaRuby "PaolaRuby (3 commits)")[![angeljqv](https://avatars.githubusercontent.com/u/79208641?v=4)](https://github.com/angeljqv "angeljqv (1 commits)")[![fredsal](https://avatars.githubusercontent.com/u/79155632?v=4)](https://github.com/fredsal "fredsal (1 commits)")[![kohlerdominik](https://avatars.githubusercontent.com/u/18621527?v=4)](https://github.com/kohlerdominik "kohlerdominik (1 commits)")

---

Tags

pdfwrapperfpdf

### Embed Badge

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

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

###  Alternatives

[setasign/fpdi

FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF. Because it is also possible to use FPDI with TCPDF, there are no fixed dependencies defined. Please see suggestions for packages which evaluates the dependencies automatically.

1.2k151.0M268](/packages/setasign-fpdi)[setasign/fpdf

FPDF is a PHP class which allows to generate PDF files with pure PHP. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.

77268.3M255](/packages/setasign-fpdf)[setasign/tfpdf

This class is a modified version of FPDF that adds UTF-8 support. The latest version is based on FPDF 1.85.

427.0M38](/packages/setasign-tfpdf)[tmw/fpdm

PDF form filling using FPDM Class written by FPDF author Olivier

130655.1k3](/packages/tmw-fpdm)[setasign/fpdi-protection

A FPDI compatible version of the FPDF\_Protection script.

314.4M2](/packages/setasign-fpdi-protection)[nucleos/dompdf-bundle

This bundle provides a wrapper for using dompdf inside symfony.

55977.7k1](/packages/nucleos-dompdf-bundle)

PHPackages © 2026

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