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

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

emscherland/fpdf
================

A wrapper/clone for the fpdf-Library for use with composer with some enhancements

v3.2.2(1y ago)1199MITPHPPHP ^8.3

Since Jul 30Pushed 1y agoCompare

[ Source](https://github.com/Emscherland/fpdf)[ Packagist](https://packagist.org/packages/emscherland/fpdf)[ RSS](/packages/emscherland-fpdf/feed)WikiDiscussions main Synced today

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

[![Build Status](https://github.com/Emscherland/fpdf/workflows/tests/badge.svg)](https://github.com/Emscherland/fpdf/actions)[![Latest Stable Version](https://camo.githubusercontent.com/5855ef7dd5a232b708c61eeb01911ca00014a2f86ac6e064823411705099ce73/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656d73636865726c616e642f66706466)](https://packagist.org/packages/emscherland/fpdf)![PHP Version](https://camo.githubusercontent.com/256ba07d3e563226880ffb4358dc2f694f224e6ee2cb712bf57c3eabe2d5d5aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f656d73636865726c616e642f667064662f7068703f7365727665723d68747470732533412532462532467061636b61676973742e6f7267266c6162656c3d504850)[![License](https://camo.githubusercontent.com/ee76fe7af54a23910612e37ef10fae5d7a5166067fc6dc0ea73ec723a393cfd1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656d73636865726c616e642f66706466)](https://packagist.org/packages/emscherland/fpdf)

FPDF
====

[](#fpdf)

This repository is a wrapper (with small enhancements) around the popular FPDF library. See [FPDF homepage](http://www.fpdf.org/) for more information about the usage.

It also includes the class fpdfprotection that extends fpdf and sets some basic protection for PDF-files.

Installation using [Composer](https://getcomposer.org/)
-------------------------------------------------------

[](#installation-using-composer)

```
$ composer require emscherland/fpdf
```

Usage (fpdf without protection)
-------------------------------

[](#usage-fpdf-without-protection)

In your php file where you want to use the class:

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

For the usage please look at the FPDF documentation.

Usage (fpdf with protection)
----------------------------

[](#usage-fpdf-with-protection)

In your php file where you want to use the class:

```
$pdf = new \Emscherland\Fpdf\FpdfProtection();
```

For the usage please look at the FPDF documentation.

To set password and protection level (with example data):

```
$permission=array('print', 'modify', 'copy', 'annot-forms');
$user_pass='geheim';
$owner_pass='strenggeheim';

$pdf->SetProtection($permission,$user_pass,$owner_pass);
```

Please choose your own passwords. :-)

### 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.

```

### License fpdfprotection

[](#license-fpdfprotection)

```
You may use and modify this software as you wish as stated in original FPDF package.

```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

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

Recently: every ~341 days

Total

19

Last Release

615d ago

Major Versions

v1.2.2 → v2.0.02019-10-04

v2.0.1 → v3.1.22020-10-03

v2.1.0 → v3.0.02020-10-14

PHP version history (7 changes)v1.0.0PHP &gt;=5.3.0

v1.1.0PHP &gt;=7.0.0

v1.2.0PHP &gt;=7.2.0

v3.1.2PHP ^8.0

v2.1.0PHP &gt;=7.2

v3.0.0PHP &gt;=7.4

v3.2.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f5051dcc0b49ec031293b5a8b6b1cc79d1919aa8afe506c56ff2f1494dfb942?d=identicon)[emscherland](/maintainers/emscherland)

![](https://www.gravatar.com/avatar/3988bcd674c8583e1f7991a9ea5049cc957b177104beea92487067ddc04f45e0?d=identicon)[thataf](/maintainers/thataf)

---

Top Contributors

[![ThatBea](https://avatars.githubusercontent.com/u/55582478?v=4)](https://github.com/ThatBea "ThatBea (46 commits)")

---

Tags

pdffpdf

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/emscherland-fpdf/health.svg)](https://phpackages.com/packages/emscherland-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.2k142.4M231](/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.

77263.8M227](/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.

426.1M30](/packages/setasign-tfpdf)[tmw/fpdm

PDF form filling using FPDM Class written by FPDF author Olivier

129623.6k3](/packages/tmw-fpdm)[fpdf/fpdf

FPDF Composer Wrapper

512.7M22](/packages/fpdf-fpdf)[setasign/fpdi-protection

A FPDI compatible version of the FPDF\_Protection script.

324.3M2](/packages/setasign-fpdi-protection)

PHPackages © 2026

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