Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
royopa committed Jun 27, 2014
1 parent 8ea3327 commit b9ef3ba
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions README.md
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.

0 comments on commit b9ef3ba

Please sign in to comment.