PHPackages                             luke-bates/162fpdi - 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. luke-bates/162fpdi

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

luke-bates/162fpdi
==================

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.

00PHP

Since Aug 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/luke-bates/fpdi-161-php7)[ Packagist](https://packagist.org/packages/luke-bates/162fpdi)[ RSS](/packages/luke-bates-162fpdi/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

FPDI - Free PDF Document Importer
=================================

[](#fpdi---free-pdf-document-importer)

[![Latest Stable Version](https://camo.githubusercontent.com/635d5b4af3457b6e3fa033ba41e975cbec76afdc040c77fe51e9a19a1e0da928/68747470733a2f2f706f7365722e707567782e6f72672f736574617369676e2f667064692f762f737461626c652e737667)](https://packagist.org/packages/setasign/fpdi) [![Total Downloads](https://camo.githubusercontent.com/271d24fd692fd29488b988bde5f6a04a74e5eb5ffca459b1081de1563fbaff9e/68747470733a2f2f706f7365722e707567782e6f72672f736574617369676e2f667064692f646f776e6c6f6164732e737667)](https://packagist.org/packages/setasign/fpdi) [![Latest Unstable Version](https://camo.githubusercontent.com/2b6b7ad5a8d6ea4cfd2eb3711cac3a7895fab76c04516a784c950a0d90856139/68747470733a2f2f706f7365722e707567782e6f72672f736574617369676e2f667064692f762f756e737461626c652e737667)](https://packagist.org/packages/setasign/fpdi) [![License](https://camo.githubusercontent.com/dea236f29bff2256a9485dcbbf9384445e1d7cfa415d375141cd4f530cc17c11/68747470733a2f2f706f7365722e707567782e6f72672f736574617369676e2f667064692f6c6963656e73652e737667)](https://packagist.org/packages/setasign/fpdi)

A clone of [FPDI](https://www.setasign.com/fpdi) for GitHub/[Composer](https://packagist.org/packages/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, which was developed by Olivier Plathey. Apart from a copy of FPDF, FPDI does not require any special PHP extensions.

Installation with [Composer](https://packagist.org/packages/setasign/fpdi)
--------------------------------------------------------------------------

[](#installation-with-composer)

FPDI is an add-on for [FPDF](http://fpdf.org/). Additionally FPDI can be used with [TCPDF](http://www.tcpdf.org/). For completion we added a [FPDF repository](https://github.com/Setasign/FPDF) which simply clones the offical releases.

This package comes without any dependency configuration in the composer.json file. It's up to you to load the desired package as described below.

A basic installation via Composer could be done this way:

```
$ composer require setasign/fpdi:1.6.2
```

or you can include the following in your composer.json file:

```
{
    "require": {
        "setasign/fpdi": "1.6.2"
    }
}
```

### Evaluate Dependencies Automatically

[](#evaluate-dependencies-automatically)

To load dependencies automatically we prepared kind of metadata packages. To use FPDI with FPDF use [this](https://github.com/Setasign/FPDI-FPDF) package:

```
{
    "require": {
        "setasign/fpdi-fpdf": "1.6.2"
    }
}
```

For TCPDF use [this](https://github.com/Setasign/FPDI-TCPDF):

```
{
    "require": {
        "setasign/fpdi-tcpdf": "1.6.2"
    }
}
```

### Manual Dependencies

[](#manual-dependencies)

To support both FPDF and TCPDF its up to you to load the preferred package before the classes of FPDI are loaded. By default FPDI will extend FPDF. If the TCPDF class exists, a new FPDF class will be created which will extend TCPDF while FPDI will extend this.

To use FPDI with FPDF include following in your composer.json file:

```
{
    "require": {
        "setasign/fpdf": "1.8",
        "setasign/fpdi": "1.6.2"
    }
}
```

If you are using TCPDF, your have to update your composer.json respectively to:

```
{
    "require": {
        "tecnickcom/tcpdf": "6.2.13",
        "setasign/fpdi": "1.6.2"
    }
}
```

Additionally you have to trigger composers autoloader for the TCPDF class before you are initiating FPDI:

```
class_exists('TCPDF', true); // trigger Composers autoloader to load the TCPDF class
$pdf = new FPDI();
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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/bbbc9d0d8cfe699be9173b70a8869854a9b8b911eebdf4adce9b29e9d5207597?d=identicon)[luke-bates](/maintainers/luke-bates)

---

Top Contributors

[![luke-bates](https://avatars.githubusercontent.com/u/23028660?v=4)](https://github.com/luke-bates "luke-bates (2 commits)")

### Embed Badge

![Health badge](/badges/luke-bates-162fpdi/health.svg)

```
[![Health](https://phpackages.com/badges/luke-bates-162fpdi/health.svg)](https://phpackages.com/packages/luke-bates-162fpdi)
```

###  Alternatives

[42coders/document-templates

Document template management package.

19940.0k](/packages/42coders-document-templates)[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

23749.5k](/packages/qipsius-tcpdf-bundle)[macopedia/magmi2

Magento Mass Importer 'Magmi' for Magento 2

11615.7k](/packages/macopedia-magmi2)[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.4k](/packages/tarfin-labs-easy-pdf)[ikkez/f3-sheet

Some Excel and CSV utilities for PHP Fat-Free Framework

1414.8k](/packages/ikkez-f3-sheet)[nilgems/laravel-textract

A Laravel package to extract text from files like DOC, XL, Image, Pdf and more. I've developed this package by inspiring "npm textract".

195.7k](/packages/nilgems-laravel-textract)

PHPackages © 2026

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