Package Data | |
---|---|
Maintainer Username: | rizalafani |
Maintainer Contact: | ahmadrizalafani@gmail.com (Ahmad Rizal Afani) |
Package Create Date: | 2016-02-09 |
Package Last Update: | 2016-02-09 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:02:32 |
Package Statistics | |
---|---|
Total Downloads: | 943 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
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;
});