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

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

tesarwijaya/laravel-fpdf
========================

originally by codedge/laravel-fpdf, edited some work to meet our own requirement

1.2.2(8y ago)011MITPHPPHP &gt;=5.4.0

Since Jun 21Pushed 8y agoCompare

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

READMEChangelogDependencies (1)Versions (6)Used By (0)

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/d8d86820a6eb93a0d5ef018e0fb76ad34abe55fe151a58b694b564b264b4b092/68747470733a2f2f706f7365722e707567782e6f72672f636f64656467652f6c61726176656c2d667064662f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/codedge/laravel-fpdf)[![Total Downloads](https://camo.githubusercontent.com/dfff9a510c0004e3c0e25ff286b51b5c790c13258981858b9c6571f9f38edb4a/68747470733a2f2f706f7365722e707567782e6f72672f636f64656467652f6c61726176656c2d667064662f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/codedge/laravel-fpdf)[![StyleCI](https://camo.githubusercontent.com/ef9c6843c077e1617cad456ba56d966f2616714dcbaaa1c9fab421c637db8b6b/68747470733a2f2f7374796c6563692e696f2f7265706f732f35393530363435312f736869656c64)](https://styleci.io/repos/59506451)[![License](https://camo.githubusercontent.com/6a1178acfb16a94edec38dade8b684e77b0e4b1fb16972e0d10f9be33e144939/68747470733a2f2f706f7365722e707567782e6f72672f636f64656467652f6c61726176656c2d667064662f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/codedge/laravel-fpdf)

This repository implements a simple [ServiceProvider](https://laravel.com/docs/master/providers)that creates a singleton instance of the Fpdf PDF library - easily accessible via a [Facade](https://laravel.com/docs/master/facades) in [Laravel 5](http://laravel.com).

See [FPDF homepage](http://www.fpdf.org/) for more information about the usage.

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

[](#installation-using-composer)

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

Usage
-----

[](#usage)

To use the static interfaces (facades) you need to add the following lines to your `config/app.php`. The `[1]` is for registering the service provider, the `[2]` are for specifying the facades:

```
// config/app.php

return [

    //...

    'providers' => [
        // ...

        /*
         * Application Service Providers...
         */
        // ...
        Codedge\Fpdf\FpdfServiceProvider::class, // [1]
    ],

    // ...

    'aliases' => [
        // ...
        'Fpdf' => Codedge\Fpdf\Facades\Fpdf::class, // [2]
]
```

Now you can use the facades in your application.

Configuration (optional)
------------------------

[](#configuration-optional)

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

Open this file and enter the correct page settings, if you do not want the defaults.

Basic example
-------------

[](#basic-example)

If you want to use the facade you can see a basic example here:

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

Route::get('/', function () {

    Fpdf::AddPage();
    Fpdf::SetFont('Courier', 'B', 18);
    Fpdf::Cell(50, 25, 'Hello World!');
    Fpdf::Output();

});
```

Of course you can also inject the singleton instance via dependency injection. See an example here:

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

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

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

});
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 96% 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 ~86 days

Total

5

Last Release

3267d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b9d95129673e54fe504509c4768da8a0f2a262a808de9c126ef2e95f5327ac9?d=identicon)[tesarwijaya](/maintainers/tesarwijaya)

---

Top Contributors

[![codedge](https://avatars.githubusercontent.com/u/4409904?v=4)](https://github.com/codedge "codedge (24 commits)")[![tesarwijaya](https://avatars.githubusercontent.com/u/9306505?v=4)](https://github.com/tesarwijaya "tesarwijaya (1 commits)")

---

Tags

laravelpdffpdf

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/tesarwijaya-laravel-fpdf/health.svg)](https://phpackages.com/packages/tesarwijaya-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)
