PHPackages                             stanko/pdf - 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. stanko/pdf

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

stanko/pdf
==========

A complete rewrite of the legendary FPDF PHP class.

0.6.3(1y ago)125.7k↓23.1%MITPHPPHP &gt;=8.1

Since Nov 19Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/frantisekstanko/php-pdf)[ Packagist](https://packagist.org/packages/stanko/pdf)[ Docs](https://github.com/frantisekstanko/php-pdf)[ RSS](/packages/stanko-pdf/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (5)Versions (11)Used By (0)

A fresh PDF generator written in PHP
====================================

[](#a-fresh-pdf-generator-written-in-php)

This project is a work-in-progress, complete rewrite of [tFPDF](http://fpdf.org/fr/script/script92.php), which is a modified version of [FPDF](http://www.fpdf.org/).

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

[](#installation)

```
composer require stanko/pdf
```

### Code quality

[](#code-quality)

Whole codebase currently passes PHPStan at max level, including the tests.

The tests cover most of the features. I aim for 100% test coverage.

### Development

[](#development)

To run all checks and tests, execute:

```
composer test
```

### Current work

[](#current-work)

I am currently making the class immutable.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance62

Regular maintenance activity

Popularity29

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Recently: every ~90 days

Total

9

Last Release

571d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97845a2d4af23c055637f85d015632bf942efcec47638125e8debd5cefffe256?d=identicon)[frantisekstanko](/maintainers/frantisekstanko)

---

Top Contributors

[![frantisekstanko](https://avatars.githubusercontent.com/u/100702441?v=4)](https://github.com/frantisekstanko "frantisekstanko (699 commits)")

---

Tags

pdfpdf-generationpdf-phpphp-pdftcpdfpdffpdf

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  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.2k155.8M286](/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.

81070.8M272](/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.

437.5M44](/packages/setasign-tfpdf)[tmw/fpdm

PDF form filling using FPDM Class written by FPDF author Olivier

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

FPDF Composer Wrapper

573.0M28](/packages/fpdf-fpdf)[setasign/fpdi-protection

A FPDI compatible version of the FPDF\_Protection script.

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

PHPackages © 2026

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