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

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

shujaat/fpdf
============

Fpdf allows to generate PDF files

014PHP

Since Jan 26Pushed 3y agoCompare

[ Source](https://github.com/ShujaatANaqvi/laravel-fpdf)[ Packagist](https://packagist.org/packages/shujaat/fpdf)[ RSS](/packages/shujaat-fpdf/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

If you're going to use this package with L4, make sure you include the laravel 4 version:

```
"require": {
    "anouar/fpdf": "1.0.1"
}
```

\##laravel-Fpdf

Fpdf lets you generate PDF files. This package is the laravel package version of  , for more information check this link

\##Donation : If you want to support us: [![Click here to lend your support to: github and make a donation at pledgie.com !](https://camo.githubusercontent.com/5899c75badea3a703b9e0ba0b9350c62fd4544f83481466dfdb5254857ba8380/68747470733a2f2f706c65646769652e636f6d2f63616d706169676e732f32373734382e706e673f736b696e5f6e616d653d6368726f6d65)](https://pledgie.com/campaigns/27748)

\###Installation Add the following to your `composer.json` file:

```
"require-dev": {
	"anouar/fpdf": "1.0.2"
}
```

Next, run `composer install` to download it.

Add the service provider to `app/config/app.php`, within the `providers` array.

```
'providers' => array(
	// ...

	'Anouar\Fpdf\FpdfServiceProvider',
)
```

Finally, add the alias to `app/config/app.php`, within the `aliases` array.

```
'aliases' => array(
	// ...

	'Fpdf'	  => 'Anouar\Fpdf\Facades\Fpdf',
)
```

\##Example Code

```
Route::get('pdf', function(){
	$fpdf = new Fpdf();
        $fpdf->AddPage();
        $fpdf->SetFont('Arial','B',16);
        $fpdf->Cell(40,10,'Hello World!');
        $fpdf->Output();
        exit;

});
```

\##OR

```
Route::get('pdf', function(){

        Fpdf::AddPage();
        Fpdf::SetFont('Arial','B',16);
        Fpdf::Cell(40,10,'Hello World!');
        Fpdf::Output();
        exit;

});

```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 68.9% 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/298b84087167ab819e5099b8ea38ecbe981c31807c3bd6454fe0457e8547e602?d=identicon)[ShujaatANaqvi](/maintainers/ShujaatANaqvi)

---

Top Contributors

[![anouarabdsslm](https://avatars.githubusercontent.com/u/2453950?v=4)](https://github.com/anouarabdsslm "anouarabdsslm (31 commits)")[![ShujaatANaqvi](https://avatars.githubusercontent.com/u/1732275?v=4)](https://github.com/ShujaatANaqvi "ShujaatANaqvi (5 commits)")[![jonasemde](https://avatars.githubusercontent.com/u/5083193?v=4)](https://github.com/jonasemde "jonasemde (3 commits)")[![blueclock](https://avatars.githubusercontent.com/u/586174?v=4)](https://github.com/blueclock "blueclock (1 commits)")[![CesarLanderos](https://avatars.githubusercontent.com/u/815951?v=4)](https://github.com/CesarLanderos "CesarLanderos (1 commits)")[![BenjaminRehn](https://avatars.githubusercontent.com/u/2428038?v=4)](https://github.com/BenjaminRehn "BenjaminRehn (1 commits)")[![Ryuske](https://avatars.githubusercontent.com/u/609591?v=4)](https://github.com/Ryuske "Ryuske (1 commits)")[![asarmiento](https://avatars.githubusercontent.com/u/10239510?v=4)](https://github.com/asarmiento "asarmiento (1 commits)")[![jeroennoten](https://avatars.githubusercontent.com/u/4370753?v=4)](https://github.com/jeroennoten "jeroennoten (1 commits)")

### Embed Badge

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

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

###  Alternatives

[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.9k](/packages/tarfin-labs-easy-pdf)

PHPackages © 2026

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