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

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

mycools/laravel-fpdf
====================

Laravel package to include Fpdf. It ships with Fpdf 1.82.

1.8.0(4y ago)019MITPHPPHP &gt;=7.3 || ^8.0

Since Jun 21Pushed 4y agoCompare

[ Source](https://github.com/mycools/laravel-fpdf)[ Packagist](https://packagist.org/packages/mycools/laravel-fpdf)[ GitHub Sponsors](https://github.com/mycools)[ RSS](/packages/mycools-laravel-fpdf/feed)WikiDiscussions master Synced 2d ago

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

Laravel package for Fpdf
========================

[](#laravel-package-for-fpdf)

Original Package see :

Using [FPDF](http://www.fpdf.org/) made easy with Laravel (V 1.8.4). See [FPDF homepage](http://www.fpdf.org/) for more information about the usage.

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

[](#installation-using-composer)

```
$ composer require mycools/laravel-fpdf
```

Configuration
-------------

[](#configuration)

Run
`php artisan vendor:publish --provider="Mycools\Fpdf\FpdfServiceProvider" --tag=config`
to publish the configuration file to `config/fpdf.php`.

Usage
-----

[](#usage)

```
// app/Http/routes.php | app/routes/web.php

Route::get('/', function (Mycools\Fpdf\Fpdf\Fpdf $fpdf) {

    $fpdf->AddPage();
    $fpdf->SetFont('Courier', 'B', 18);
    $fpdf->Cell(50, 25, 'Hello World!');
    $fpdf->Output();

});
```

Use in Laravel Vapor
--------------------

[](#use-in-laravel-vapor)

If you want to use [Laravel Vapor](https://vapor.laravel.com) to host your application, [a special header](https://docs.vapor.build/1.0/projects/development.html#binary-responses) needs to be attached to each response that FPDF returns to your browser. To enable the use of this header, add the following environment variable to the Vapor environment file:

```
FPDF_VAPOR_HEADERS=true
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 57.7% 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 ~107 days

Recently: every ~132 days

Total

19

Last Release

1687d ago

PHP version history (5 changes)1.0PHP &gt;=5.4.0

1.5.1PHP &gt;=7.2

1.6.0PHP &gt;=7.3

1.7.1PHP &gt;=7.3|^8.0

1.8.0PHP &gt;=7.3 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![codedge](https://avatars.githubusercontent.com/u/4409904?v=4)](https://github.com/codedge "codedge (97 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (59 commits)")[![dniccum](https://avatars.githubusercontent.com/u/2816415?v=4)](https://github.com/dniccum "dniccum (6 commits)")[![iammycools](https://avatars.githubusercontent.com/u/776375?v=4)](https://github.com/iammycools "iammycools (4 commits)")[![mansoorkhan96](https://avatars.githubusercontent.com/u/51432274?v=4)](https://github.com/mansoorkhan96 "mansoorkhan96 (1 commits)")[![no-simpler](https://avatars.githubusercontent.com/u/30579893?v=4)](https://github.com/no-simpler "no-simpler (1 commits)")

---

Tags

laravelpdffpdf

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

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

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[lucasromanojf/laravel5-pdf

Provides the HTML2PDF functionality using the wkhtmltopdf library (Laravel 5)

1271.8k](/packages/lucasromanojf-laravel5-pdf)

PHPackages © 2026

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