inquid/yii2-fpdf

FPDF in Yii2

Installs: 4 016

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 6

Type:yii2-extension

v1.3 2023-09-21 17:18 UTC

This package is auto-updated.

Last update: 2024-10-21 19:43:12 UTC


README

Including FPDF 1.81 in Yii2

Yii2 FPDF

Yii2 Implementation of FPDF

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist inquid/yii2-fpdf "*"

or add

"inquid/yii2-fpdf": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

$pdf = new FPDF('P', 'mm', 'Letter');
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();

Documentation

Please read documentation of FPDF