kiirpi / pdf-service-provider
A Pdf service provider for Silex, based on Zend_Pdf library.
dev-master
2015-11-19 07:29 UTC
Requires
- php: >=5.3.3
- silex/silex: 1.2.*
- zendframework/zendpdf: 2.0.*
Suggests
- silex/silex: for the integration with your silex application
This package is not auto-updated.
Last update: 2024-10-30 18:14:06 UTC
README
A Pdf Service Provider for Silex, based on ZendPdf library.
Installation
Installation is very easy, it makes use of Composer.
Install Composer
Run this in your command line:
$ curl -s http://getcomposer.org/installer | php
Or download composer.phar into the project root.
Add PdfServiceProvider to your composer.json
"require": {
"php": "> 5.3.3",
"erivello/pdf-service-provider": "dev-develop"
}
Install Dependencies
Run the following command:
$ php composer.phar install
Now PdfServiceProvider is installed into your vendor directory.
Registering
$app->register(new Erivello\Silex\PdfServiceProvider());
Usage
You can access the PdfServiceProvider by calling $app['pdf.generator']
.
Tests
$ php composer.phar install && phpunit
License
The PdfServiceProvider is licensed under the MIT license.