/laravel-fpdf

Fpdf allows to generate PDF files

Primary LanguagePHPApache License 2.0Apache-2.0

##laravel-Fpdf

Fpdf allows to generate PDF files . This package is the laravel package version of http://www.fpdf.org , for more information check this link http://www.fpdf.org/?lang=en

##Donation : If you want to support us: Click here to lend your support to: github and make a donation at pledgie.com !

###Installation To your composer.json file, add:

"require-dev": {
	"anouar/fpdf": "dev-master"
}

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\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;

});