PdfServiceProvider
A Pdf Service Provider for Silex, based on ZendPdf library., (*1)
, (*2)
Installation
Installation is very easy, it makes use of Composer., (*3)
Install Composer
Run this in your command line:, (*4)
``` bash
$ curl -s http://getcomposer.org/installer | php, (*5)
Or [download composer.phar][4] into the project root.
### Add PdfServiceProvider to your composer.json
"require": {
"php": "> 5.3.3",
"betzholz/pdf-service-provider": "dev-master"
}
### Install Dependencies
Run the following command:
``` bash
$ php composer.phar install
Now PdfServiceProvider is installed into your vendor directory., (*6)
Registering
$app->register(new Erivello\Silex\PdfServiceProvider());
Usage
You can access the PdfServiceProvider by calling $app['pdf.generator']
., (*7)
Tests
bash
$ php composer.phar install && phpunit
, (*8)
License
The PdfServiceProvider is licensed under the MIT license., (*9)