Skip to content

Including FPDF in Yii2

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
license.txt
Notifications You must be signed in to change notification settings

inquid/yii2-fpdf

 
 

Repository files navigation

yii2-fpdf

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

About

Including FPDF in Yii2

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
license.txt

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 63.2%
  • HTML 36.2%
  • CSS 0.6%