PHP code example of nafanyka / laravel-fpdf
1. Go to this page and download the library: Download nafanyka/laravel-fpdf library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nafanyka / laravel-fpdf example snippets
// app/Http/routes.php | app/routes/web.php
Route::get('/', function (Nafanyka\Fpdf\Fpdf\Fpdf $fpdf) {
$fpdf->AddPage();
$fpdf->SetFont('Courier', 'B', 18);
$fpdf->Cell(50, 25, 'Hello World!');
$fpdf->Output();
exit;
});