rizalafani / fpdflaravel
FPDF Laravel 5
Installs: 945
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:package
Requires
This package is not auto-updated.
Last update: 2024-11-09 19:04:41 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; });