PHP Classes

PHP Free PDF Library: Generate PDF documents programatically

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 215 This week: 1All time: 8,323 This week: 42Up
Version License PHP version Categories
freepdf 1.0.2Freeware7PHP 5, Printing
Description 

Author

This package can be used to generate PDF documents programatically.

It is based on the FreePDF package originally written by Olivier Plathey.

This version of the package is compliant with the coding style defined by the PSR-12 and takes advantage of the PHP 7.4 features.

Picture of John Conde
  Performance   Level  
Innovation award
Innovation award
Nominee: 1x

 

Documentation

FreePDF (freepdf)

FreePDF is a fork of FPDF by Olivier Plathey and is available at fpdf.org. It has been refactored to take advantage of features available in PHP 7.4 and later as well as PSR-12 compliant. It also makes the PDF functionality available via Composer and other can contribute via forking and pull requests.

Future plans include creating a PDFlib API compatible replacement.

Requirements

  • PHP 7.4+
  • mbstring.func_overload must be disabled

Installation

You can include the FreePDF.php file directly by requiring the FreePDF.php file into your code:

require('/path/to/src/FreePDF/FreePDF.php');

$pdf = new \FreePDF\FreePDF();

Usage

The fpdf website has tutorials and documentation for using this library as the API has not changed.


  Files folder image Files (43)  
File Role Description
Files folder image.idea (1 file)
Files folder imagesrc (1 directory)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file CHANGELOG Data Auxiliary data
Accessible without login Plain text file CONTRIBUTING.md Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file SECURITY.md Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:215
This week:1
All time:8,323
This week:42Up