Download the PHP package francerz/exfpdf without Composer

On this page you can find all versions of the php package francerz/exfpdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package exfpdf

ExFPDF (Extended Free PDF)

Packagist Build Status

This library extends basic functionality of the FPDF class.

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

The easiest and optimal way to install ExFPDF is by using Composer.

If you already using Composer, just run the next command and will be fully installed.

Extended functionality

Output result as PSR-7 ResponseInterface

The ExFPDF allows to output resultant PDF to PSR-7 compliant ResponseInterface object. Relies on PSR-17 Http Factories to create the instances.

Usage example

Alternative simplified method OutputPsr7WithManager

Alternatively you can use HttpFactoryManager to handle multiple factories instances to reduce parameters, improving reusability.

Usage example

Even simplier with in-home HTTP library

In the following example is used the simplified version with in-home HTTP library francerz/http wich is PSR-7, PSR-17 and PSR-18 compliant.

Relative Positioning and Sizing

Its allowed to use X, Y, Width and Height as percents of current page size.

Also the positioning and sizing can be relative to the page content area, inside the margins.

Therefore, you can get measure calculations with methods CalcX($x), CalcY($y), CalcWidth($w) and CalcHeight($h).

Offset positioning

Allows to increase or decrease current position.

Coordinate Pinning

It's posible to pin coordinates with a name.

Relative Cell Height based on Font Size

Define automatic line height size based on current Font Size.

Simplified content encoding

Allows internal decoding strings without writing on each cell.

Right aligned Cell

Puts a cell aligned to the right margin of the page. Optionally $margin can be set to displace the Cell from the right margin.

Header and Footer

Allows to define Header and Footer using anonymous functions.

Note:
It's important to invoke SetHeader() and SetFooter() before AddPage().

Tables

Table PDF creation is simplified and with automatic overflowing when cells overflows in multiple pages.

Barcode support

Using the barcode128 puts the given $code ASCII string at the given $x and $y position. And with given $w (width) and $h (height). This measures are compatible with the relative positioning and sizing.

If no $x or $y is set, then will be the current PDF position.

Using the barcode39 puts the given $code ([-0-9A-Z. *$/+%]) string at the given $x and $y position, with the given $w (width) and $h (height). This meaures are compatible with the relative positioning and sizing.

QR and DataMatrix support


All versions of exfpdf with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
setasign/fpdf Version ^1.8
francerz/http-utils Version ^0.2.19
ext-iconv Version >=5.4
tecnickcom/tc-lib-barcode Version ^1.17
francerz/enum Version ^0.1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package francerz/exfpdf contains the following files

Loading the files please wait ....