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

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

ramlalgit/knp-snappy
====================

PHP5 library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.

00PHP

Since May 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/RamlalGit/knp-snappy)[ Packagist](https://packagist.org/packages/ramlalgit/knp-snappy)[ RSS](/packages/ramlalgit-knp-snappy/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Snappy
======

[](#snappy)

[![Travis CI Build Status](https://camo.githubusercontent.com/4f0d494d66984127c61d057f15b44b08f86598147f06d8b70f0053e2d0991201/68747470733a2f2f7472617669732d63692e6f72672f4b6e704c6162732f736e617070792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/KnpLabs/snappy)[![AppVeyor CI Build Status](https://camo.githubusercontent.com/2082d6c0ce2b362503108ce845904a3ae9bb6591a534e04c60c62d28ace5ce9f/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f6769746875622f4b6e704c6162732f736e617070793f6272616e63683d6d6173746572267376673d74727565)](https://ci.appveyor.com/project/NiR-/snappy)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2e8750ad0febfe3e61d7ce34560fecf2b10184e7bcf2cfee2691144f1a129084/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4b6e704c6162732f4761756672657474652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/KnpLabs/Gaufrette/?branch=master)[![StyleCI](https://camo.githubusercontent.com/222e83c5157315b1082cd6e5bf9c0b914be75916a8360970f78f6f41e10f2f1f/68747470733a2f2f7374796c6563692e696f2f7265706f732f3732333938302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/723980)

Snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. It uses the excellent webkit-based [wkhtmltopdf and wkhtmltoimage](http://wkhtmltopdf.org/)available on OSX, linux, windows.

You will have to download wkhtmltopdf `0.12.x` in order to use Snappy.

Please, check [FAQ](doc/faq.md) before opening a new issue. Snappy is a tiny wrapper around wkhtmltox, so lots of issues are already answered, resolved or wkhtmltox ones.

Following integrations are available:

- [`knplabs/knp-snappy-bundle`](https://github.com/KnpLabs/KnpSnappyBundle), for Symfony
- [`barryvdh/laravel-snappy`](https://github.com/barryvdh/laravel-snappy), for Laravel
- [`mvlabs/mvlabs-snappy`](https://github.com/mvlabs/MvlabsSnappy), for Zend Framework

Installation using [Composer](http://getcomposer.org/)
------------------------------------------------------

[](#installation-using-composer)

```
$ composer require knplabs/knp-snappy
```

Usage
-----

[](#usage)

### Initialization

[](#initialization)

```
