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

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

crabbly/fpdf-laravel
====================

Laravel package for FPDF.

v1.0.6(6y ago)30144.0k—1.8%8[4 issues](https://github.com/crabbly/fpdf-laravel/issues)[1 PRs](https://github.com/crabbly/fpdf-laravel/pulls)1MITPHP

Since Sep 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/crabbly/fpdf-laravel)[ Packagist](https://packagist.org/packages/crabbly/fpdf-laravel)[ RSS](/packages/crabbly-fpdf-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (9)Used By (1)

FPDF - Laravel
==============

[](#fpdf---laravel)

A package for Laravel to implement the FPDF class.

FPDF Official Website: [www.fpdf.org](http://www.fpdf.org/)

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

[](#installation)

### Step 1: Composer

[](#step-1-composer)

From the command line, run:

```
composer require crabbly/fpdf-laravel

```

### Step 2: Service Provider

[](#step-2-service-provider)

For your Laravel app, open `config/app.php` and, within the `providers` array, append:

```
Crabbly\Fpdf\FpdfServiceProvider::class

```

This will bootstrap the package into Laravel.

Usage
-----

[](#usage)

We can resolve the FPDF class instance out of the container:

```
$pdf = app('Fpdf');

```

We can also instantiate it directly:

```
$pdf = new Crabbly\Fpdf\Fpdf;

```

FPDF Documentation
------------------

[](#fpdf-documentation)

For documentation manual and tutorials, please visit [www.fpdf.org](http://www.fpdf.org/)

Example
-------

[](#example)

Create a 'Hello World' PDF document and save it to a file in the storage folder:

```
use Illuminate\Support\Facades\Storage;

//create pdf document
$pdf = app('Fpdf');
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');

//save file
Storage::put($pdf->Output('S'));

```

Contribution
------------

[](#contribution)

Pull requests are welcome. Please report any issue you find in the issues page.

License
-------

[](#license)

The package is free software distributed under the terms of the MIT license. FPDF is a free PHP class, you may use it for any kind of usage and modify it to suit your needs.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 84.6% 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 ~223 days

Recently: every ~214 days

Total

7

Last Release

2194d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/39e7fbab0aea0e0188557af3808e5a79e89ae0a3e9e7264d56749ab4f4f39ada?d=identicon)[crabbly](/maintainers/crabbly)

---

Top Contributors

[![crabbly](https://avatars.githubusercontent.com/u/16927940?v=4)](https://github.com/crabbly "crabbly (11 commits)")[![AndrewMast](https://avatars.githubusercontent.com/u/13026511?v=4)](https://github.com/AndrewMast "AndrewMast (2 commits)")

---

Tags

laravelfpdf

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[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)

PHPackages © 2026

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