inquid / yii2-fpdf
FPDF in Yii2
Installs: 4 018
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 6
Type:yii2-extension
Requires
- yiisoft/yii2: *
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-21 19:47:18 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