rf1705/fpdf

This package is abandoned and no longer maintained. No replacement package was suggested.

Fpdf allows to generate PDF files

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Maintainers

Package info

github.com/RF1705/laravel-fpdf

pkg:composer/rf1705/fpdf

Statistics

Installs: 11 526

Dependents: 0

Suggesters: 0

Stars: 0

2.05 2023-09-28 12:08 UTC

This package is auto-updated.

Last update: 2026-03-26 13:00:39 UTC


README

If you're going to use this package with L4, make sure you include the laravel 4 version:

"require": {
    "anouar/fpdf": "1.0.1"
}

##laravel-Fpdf

Fpdf lets you 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 Add the following to your composer.json file:

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

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

});

##OR

Route::get('pdf', function(){

        Fpdf::AddPage();
        Fpdf::SetFont('Arial','B',16);
        Fpdf::Cell(40,10,'Hello World!');
        Fpdf::Output();
        exit;

});