PHPackages                             tomsgu/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. tomsgu/knp-snappy-bundle

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

tomsgu/knp-snappy-bundle
========================

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

1.8.1(4y ago)014MITPHPPHP &gt;=7.2.5

Since Nov 5Pushed 4y agoCompare

[ Source](https://github.com/Tomsgu/KnpSnappyBundle)[ Packagist](https://packagist.org/packages/tomsgu/knp-snappy-bundle)[ Docs](http://github.com/KnpLabs/KnpSnappyBundle)[ RSS](/packages/tomsgu-knp-snappy-bundle/feed)WikiDiscussions master Synced today

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

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

[](#knpsnappybundle)

[![Build Status](https://github.com/KnpLabs/KnpSnappyBundle/actions/workflows/build.yaml/badge.svg)](https://github.com/KnpLabs/KnpSnappyBundle/actions/workflows/build.yaml/badge.svg)[![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)

[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
