PHPackages                             m1ke/fpdi-ext - 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. m1ke/fpdi-ext

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

m1ke/fpdi-ext
=============

Extensions for the FPDI and FPDF libraries

21031PHP

Since May 9Pushed 11y ago1 watchersCompare

[ Source](https://github.com/M1ke/fpdi-ext)[ Packagist](https://packagist.org/packages/m1ke/fpdi-ext)[ RSS](/packages/m1ke-fpdi-ext/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

FPDI Extended
=============

[](#fpdi-extended)

Extensions for the FPDI and FPDF libraries with methods for convenience and quicker templating.

### Install

[](#install)

You can install FPDI Extended with [Composer](http://getcomposer.org). Add the following to the `require` key of your `composer.json` file:

```
"m1ke/fpdi-ext": "dev-master"

```

### Authors

[](#authors)

Written by [Mike Lehan](http://twitter.com/m1ke) and [Ground Control Skydiving](http://gcskydiving.com).

### Example

[](#example)

```
$users=[ ['name'=>'Ben'], ['name'=>'Hero'], ['name'=>'Human'] ];

$pdf = FPDIExt::template(__DIR__.'/files/email.pdf')->SetFont('FreeSans','',22);

foreach ($users as $user){
	$pdf->add_page_template()->block_text($user['name'], 75, 50);
}

$pdf->output_inline('file.pdf');

```

The extra `draw_grid` function lets you print a grid as described [here](http://coding.derkeiler.com/Archive/PHP/comp.lang.php/2007-12/msg00607.html). The intention is that you'd use this once to work out where to hard code your content markers during development.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e13cb42c1a004c15c986cc3ac59424757dd04b25ed4068146e41812f0410338?d=identicon)[m1ke](/maintainers/m1ke)

---

Top Contributors

[![M1ke](https://avatars.githubusercontent.com/u/1226123?v=4)](https://github.com/M1ke "M1ke (5 commits)")

### Embed Badge

![Health badge](/badges/m1ke-fpdi-ext/health.svg)

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

###  Alternatives

[phpoffice/phpspreadsheet

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

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

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/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.6M131](/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)
