Download the PHP package purposefull/knp-snappy-bundle without Composer
On this page you can find all versions of the php package purposefull/knp-snappy-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download purposefull/knp-snappy-bundle
More information about purposefull/knp-snappy-bundle
Files in purposefull/knp-snappy-bundle
Package knp-snappy-bundle
Short Description Easily create PDF and images in Symfony2 by converting Twig/HTML templates.
License MIT
Homepage http://github.com/KnpLabs/KnpSnappyBundle
Informations about the package knp-snappy-bundle
KnpSnappyBundle
Snappy is a PHP (5.3+) wrapper for the wkhtmltopdf conversion utility. It allows you to generate either pdf or image files from your html documents, using the webkit engine.
The KnpSnappyBundle provides a simple integration for your Symfony project.
Installation
With composer, add:
Then enable it in your kernel:
Configuration
If you need to change the binaries, change the instance options or even disable one or both services, you can do it through the configuration.
If you want to change temporary folder which is by default, you can use
Usage
The bundle registers two services:
- the
knp_snappy.image
service allows you to generate images; - the
knp_snappy.pdf
service allows you to generate pdf files.
Generate an image from an URL
Generate a pdf document from an URL
Generate a pdf document from multiple URLs
Generate a pdf document from a twig view
Render an image as response from a controller
Render a pdf document as response from a controller
Render a pdf document with a relative url inside like css files
Credits
SnappyBundle and Snappy are based on the awesome wkhtmltopdf. SnappyBundle has been developed by KnpLabs.
All versions of knp-snappy-bundle with dependencies
symfony/framework-bundle Version ~2.3|~3.0
symfony/finder Version ~2.3|~3.0
symfony/validator Version ~2.3|~3.0
knplabs/knp-snappy Version ~0.1