Mise à jour des dépendences

This commit is contained in:
Noizette 2020-10-24 00:24:16 +02:00
parent bfecdbfe98
commit 4b3fa030d8
180 changed files with 2026 additions and 737 deletions

View file

@ -5,7 +5,6 @@ FPDI - Free PDF Document Importer
[![Total Downloads](https://poser.pugx.org/setasign/fpdi/downloads.svg)](https://packagist.org/packages/setasign/fpdi)
[![Latest Unstable Version](https://poser.pugx.org/setasign/fpdi/v/unstable.svg)](https://packagist.org/packages/setasign/fpdi)
[![License](https://poser.pugx.org/setasign/fpdi/license.svg)](https://packagist.org/packages/setasign/fpdi)
[![Build Status](https://travis-ci.org/Setasign/FPDI.svg?branch=development)](https://travis-ci.org/Setasign/FPDI)
:heavy_exclamation_mark: This document refers to FPDI 2. Version 1 is deprecated and development is discontinued. :heavy_exclamation_mark:
@ -18,75 +17,39 @@ FPDI can also be used as an extension for [TCPDF](https://github.com/tecnickcom/
## Installation with [Composer](https://packagist.org/packages/setasign/fpdi)
Because FPDI can be used with FPDF, TCPDF or tFPDF we didn't added a fixed dependency in the main
composer.json file but we added metadata packages for
[FPDF](https://github.com/Setasign/FPDI-FPDF),
[TCPDF](https://github.com/Setasign/FPDI-TCPDF) and
[tFPDF](https://github.com/Setasign/FPDI-tFPDF).
### Evaluate Dependencies Automatically
For FPDF add following [package](https://github.com/Setasign/FPDI-FPDF) to your composer.json:
```json
{
"require": {
"setasign/fpdi-fpdf": "^2.0"
}
}
```
For TCPDF add following [package](https://github.com/Setasign/FPDI-TCPDF) to your composer.json:
```json
{
"require": {
"setasign/fpdi-tcpdf": "^2.0"
}
}
```
For tFPDF add following [package](https://github.com/Setasign/FPDI-tFPDF) to your composer.json:
```json
{
"require": {
"setasign/fpdi-tfpdf": "^2.1"
}
}
```
### Manual Dependencies
If you don't want to use the metadata packages, it is up to you to add the dependencies to your
composer.json file.
Because FPDI can be used with FPDF, TCPDF or tFPDF we haven't added a fixed dependency in the main
composer.json file. You need to add the dependency to the PDF generation library of your choice
yourself.
To use FPDI with FPDF include following in your composer.json file:
```json
{
"require": {
"setasign/fpdf": "^1.8",
"setasign/fpdf": "1.8.*",
"setasign/fpdi": "^2.0"
}
}
```
If you want to use TCPDF, your have to update your composer.json respectively to:
If you want to use TCPDF, you have to update your composer.json to:
```json
{
"require": {
"tecnickcom/tcpdf": "^6.2",
"tecnickcom/tcpdf": "6.2.*",
"setasign/fpdi": "^2.0"
}
}
```
If you want to use tFPDF, your have to update your composer.json respectively to:
If you want to use tFPDF, you have to update your composer.json to:
```json
{
"require": {
"tecnickcom/tfpdf": "1.25",
"setasign/fpdi": "^2.1"
"setasign/tfpdf": "1.31.*",
"setasign/fpdi": "^2.3"
}
}
```
@ -165,4 +128,4 @@ $pdf->useTemplate($tplId, 10, 10, 100);
$pdf->Output();
```
A full end-user documentation and API reference is available [here](https://manuals.setasign.com/fpdi-manual/).
A full end-user documentation and API reference is available [here](https://manuals.setasign.com/fpdi-manual/).