rizalafani/fpdflaravel

FPDF Laravel 5

v1.0 2016-02-07 21:53 UTC

This package is not auto-updated.

Last update: 2020-06-26 19:00:03 UTC


README

Laravel 5 FPDF

#Usage

"require": {
    "rizalafani/fpdflaravel": "dev-master"
}

Kemudian, jalankan composer update.

Tambahkan service provider ke config/app.php, pada array providers.

'providers' => [
	// ...

	rizalafani\fpdflaravel\FpdfServiceProvider::class,
]

Selanjutnya, tambahkan alias ke config/app.php, pada array aliases.

'aliases' => [
	// ...

	'FPDF' => rizalafani\fpdflaravel\FpdfFacade::class,
]

##Contoh

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

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

});