Skip to content
forked from coreydoughty/Fpdf

A composer wrapper around the great php FPDF class. All credit to them.

License

Notifications You must be signed in to change notification settings

cesarreyes3/Fpdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FPDF Wrapper Class

A composer wrapper around the great php FPDF class. All credit to them.

FPDF Website

Currently uses FPDF 1.84.

Installation

Add to your "composer.json" file under the "require" section:

"fpdf/fpdf": "^1.84"

Update composer

php composer.phar update

Usage

In your php file that you want to use the class add a use statement.

use Fpdf\Fpdf;

Then use as per the FPDF documantation.

$pdf = new Fpdf();

Alternatively you can extend as a typical php class.

class CustomPdf extends Fpdf
{
    public function __construct(
        $orientation = 'P',
        $unit = 'mm',
        $size = 'letter'
    ) {
        parent::__construct( $orientation, $unit, $size );
        // ...
    }
}

License FPDF

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software to use, copy, modify, distribute, sublicense, and/or sell
copies of the software, and to permit persons to whom the software is furnished
to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.

About

A composer wrapper around the great php FPDF class. All credit to them.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 65.2%
  • HTML 34.2%
  • CSS 0.6%