forked from wormling/fpdf
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FPDF for use with Symfony2 | ||
========================== | ||
|
||
Uses FPDF 1.7 | ||
|
||
Setup | ||
----- | ||
|
||
Execute the command below: | ||
|
||
composer require "royopa/fpdf": "dev-master" | ||
|
||
And those to `app/autoload.php`: | ||
|
||
```php | ||
$classMap = array( | ||
'Fpdf_' => __DIR__.'/../vendor/toooni/fpdf/lib/FPDF/FPDF.php', | ||
'Fpdi_' => __DIR__.'/../vendor/toooni/fpdf/lib/FPDF/FPDI.php' | ||
); | ||
$loader->addClassMap($classMap); | ||
``` | ||
|
||
Usage | ||
----- | ||
|
||
```php | ||
$pdf = new \FPDF_FPDF(); | ||
$pdi = new \FPDF_FPDI(); | ||
``` | ||
|
||
FPDF | ||
----- | ||
FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. FPDF is a open source project: you may use it for any kind of usage and modify it to suit your needs. | ||
|
||
- http://www.fpdf.org/ | ||
|
||
On the fpdf homepage you will find links to the documenation, forums and so on. |