wargas/fpdf

FPDF is a PHP class which allows to generate PDF files with pure PHP. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.

Maintainers

Details

github.com/wargas/FPDF

Homepage

Source

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 221

pkg:composer/wargas/fpdf

dev-master 2022-12-23 11:40 UTC

This package is auto-updated.

Last update: 2025-09-23 17:26:29 UTC


README

This repository is only clone official FPDF releases which are available at: http://www.fpdf.org THERE WILL BE NO DEVELOPMENT IN THIS REPOSITORY!

FPDF is a PHP class which allows to generate PDF files with pure PHP. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.

Installation with Composer

If you're using Composer to manage dependencies, you can use

$ composer require wargas/fpdf:^1.8

or you can include the following in your composer.json file:

{
    "require": {
        "wargas/fpdf": "^1.8"
    }
}

Get Started

use Wargas\FPDF\FPDF;

$pdf = new FPDF();

$pdf->AddPage();
$pdf->SetFont('Arial', '', 10);
$pdf->Write(10, "Example 01");
$pdf->Image("data:image/png;base64,iVBORw0KGgoAAAA....");
$pdf->Output('I');