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

ActiveYii2-extension[PDF &amp; Document Generation](/categories/documents)

sam0786/fpdf
============

FPDF para yii2

073PHP

Since Sep 18Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

fpdf
====

[](#fpdf)

Yii2-FPDF, extensión fpdf para yii2, pdf

add funcion

WriteHTML and Row multicell

Install

composer require --ignore-platform-reqs --prefer-dist sam0786/fpdf:dev-master

example

use sam0786\\fpdf\\FPDF;

```
public function actionTestpdf(){
  Yii::$app->response->format = \yii\web\Response::FORMAT_RAW;
  Yii::$app->response->headers->add('Content-Type', 'application/pdf');

  $pdf = new FPDF();
  $pdf->AliasNbPages();
  $pdf->AddPage();
  $pdf->SetFont('Arial', 'B', 15);
  $pdf->Cell(40, 10, 'PDF');

  $pdf->Ln(15);
  $pdf->SetFont('Arial', '', 12);
  $pdf->WriteHTML(' color: hex color code face: available fonts are: arial, times, courier, helvetica, symbol ');
  $pdf->Ln(20);

  $pdf->SetFont('Arial', '', 10);
  $pdf->SetWidths(array(30,50,30,40));
  $pdf->Row(array("Titulo 1", "Titulo 2", "Titulo 3", "Titulo 4"));
  $text = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean molestie leo id turpis mollis cursus. Etiam vitae mauris eget ligula pretium viverra eget nec est';
  $pdf->Row(array($text, $text, $text, $text));

  $pdf->Output();
}

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f7779ec66ca704893afbb1bc67aa510ff01fbf7c7309543a0324a16b0da57d4d?d=identicon)[sam0736](/maintainers/sam0736)

---

Top Contributors

[![sam0786](https://avatars.githubusercontent.com/u/26822750?v=4)](https://github.com/sam0786 "sam0786 (6 commits)")[![sam07368](https://avatars.githubusercontent.com/u/161389690?v=4)](https://github.com/sam07368 "sam07368 (3 commits)")

### Embed Badge

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

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

###  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)[akeneo-labs/excel-connector-bundle

Akeneo PIM Excel connector bundle

166.4k](/packages/akeneo-labs-excel-connector-bundle)

PHPackages © 2026

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