PHPackages                             mr-slack/knp-snappy-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. mr-slack/knp-snappy-bundle

ActiveSymfony-bundle[PDF &amp; Document Generation](/categories/documents)

mr-slack/knp-snappy-bundle
==========================

Easily create PDF and images in Symfony by converting Twig/HTML templates.

v1.8.0(5y ago)05MITPHPPHP &gt;=7.2.5

Since Nov 5Pushed 4y agoCompare

[ Source](https://github.com/mrSlack/KnpSnappyBundle)[ Packagist](https://packagist.org/packages/mr-slack/knp-snappy-bundle)[ Docs](http://github.com/KnpLabs/KnpSnappyBundle)[ RSS](/packages/mr-slack-knp-snappy-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (10)Versions (14)Used By (0)

KnpSnappyBundle
===============

[](#knpsnappybundle)

[![Build Status](https://camo.githubusercontent.com/188371a3924255073f6086e3d6f289cc94f1607838dab12a137ec284bfafb148/68747470733a2f2f7472617669732d63692e6f72672f4b6e704c6162732f4b6e70536e6170707942756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/KnpLabs/KnpSnappyBundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/727acc2fc5ed600784fd34fef975531c36cfcce1ea21013a9da06259afa375d7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4b6e704c6162732f4b6e70536e6170707942756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/KnpLabs/KnpSnappyBundle/?branch=master)[![StyleCI](https://camo.githubusercontent.com/1ad9998b35da3edaadfbbc0f45e07eb2d043fe3f321d417c0214622389867ee6/68747470733a2f2f7374796c6563692e696f2f7265706f732f3734333231382f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/743218)[![knpbundles.com](https://camo.githubusercontent.com/24093054843a17c57fb00b2ec9e79706777d4f3376729f8f3cec24d6dfdfe0fc/687474703a2f2f6b6e7062756e646c65732e636f6d2f4b6e704c6162732f4b6e70536e6170707942756e646c652f62616467652d73686f7274)](http://knpbundles.com/KnpLabs/KnpSnappyBundle)

[Snappy](https://github.com/KnpLabs/snappy) is a PHP (5.6+) wrapper for the [wkhtmltopdf](http://wkhtmltopdf.org) 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
------------

[](#installation)

With [composer](https://getcomposer.org), require:

`composer require knplabs/knp-snappy-bundle`

Then enable it in your kernel (optional if you are using the Flex recipe with Symfony &gt;= 4) :

```
// config/bundles.php
