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

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

feryardiant/fpdf
================

Unofficial FPDF library with PSR-0 compliant, clean and readable code.

1.7.2(11y ago)41.8k2no usage restrictionPHPPHP &gt;=5.3.0CI passing

Since Jan 4Pushed 10y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

FPDF
====

[](#fpdf)

[![Packagist License](https://camo.githubusercontent.com/efcbae5ed1a271187ae680f87fd632eb812c570c1e92c6669d7c3dcfdc384e03/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6665727961726469616e742f667064662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/feryardiant/fpdf)[![Packagist Version](https://camo.githubusercontent.com/766d61f7d7471036d716e2461a3ed905d744e76c0edee58adf89c8323e8a51a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6665727961726469616e742f667064662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/feryardiant/fpdf)[![Travis branch](https://camo.githubusercontent.com/9f0d192588bd1ae2605bdced1a83b1bc664573eacd8683afe99e0e3b86590371/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6665727961726469616e742f667064662f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/feryardiant/fpdf)[![Gittip donate](https://camo.githubusercontent.com/b7306953a2e49cb5cbcc263fc80462fb9300688c0c12bc1a0db8780c4f516d8a/687474703a2f2f696d672e736869656c64732e696f2f67726174697061792f6665727961726469616e742e7376673f7374796c653d666c61742d737175617265)](https://www.gratipay.com/feryardiant/ "Buy me coffee via Gittip")[![PayPal donate](https://camo.githubusercontent.com/d9aea10192f78901a58008c5e4784cc7425fa7cf7f159b4e70a262aba0d7e3f4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](http://j.mp/1Qp9MUT "Buy me coffee via PayPal")

Unofficial FPDF library with PSR-4 compliant, clean and readable code

This is version 1.7.2 with some changes:

- The library is namespaced in `Fpdf`
- directory structure follow the PSR-4 standard with `src/Fpdf` as root
- Class constructor is renamed `__construct` instead of `FPDF`
- `FPDF_VERSION` is now `Fpdf\Fpdf::VERSION`
- on error a `Fpdf\Exception` is thrown instead on lib dramatically `die()`ing
- Refactor all method in `camelCase` (**It's breaks backward compatibility**).
- Rebuild documentations and tutorials.
- Complete testunit.

Installing with composer
------------------------

[](#installing-with-composer)

The package exists in the packagist repository as `feryardiant/fpdf`.

```
$ composer require feryardiant/fpdf --prefer-dist
```

Testing
-------

[](#testing)

```
phpunit -c tests/phpunit.xml
```

Credits
-------

[](#credits)

**Original Author:** Olivier PLATHEY

**FPDF Version:** 1.7

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~19 days

Total

3

Last Release

4104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16384dbbd6cd66f33f13f5bf2dc7f26125049762c7414eb0e755c630375240ba?d=identicon)[feryardiant](/maintainers/feryardiant)

---

Top Contributors

[![feryardiant](https://avatars.githubusercontent.com/u/508665?v=4)](https://github.com/feryardiant "feryardiant (55 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.2k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M100](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M128](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

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