PHPackages                             mfabdelaziz/weasyprint-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. mfabdelaziz/weasyprint-bundle

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

mfabdelaziz/weasyprint-bundle
=============================

Cmreate PDF in Symfony by converting Twig/HTML templates.

1.2.1(3y ago)05MITPHPPHP 7.4.\* || 8.0.\* || 8.1.\*

Since Feb 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mfabdelaziz/WeasyPrintBundle)[ Packagist](https://packagist.org/packages/mfabdelaziz/weasyprint-bundle)[ RSS](/packages/mfabdelaziz-weasyprint-bundle/feed)WikiDiscussions 1.0.0 Synced 2d ago

READMEChangelog (1)Dependencies (14)Versions (3)Used By (0)

WeasyPrintBundle
================

[](#weasyprintbundle)

[PhpWeasyPrint](https://github.com/pontedilana/php-weasyprint) is a PHP (7.4+) wrapper for [WeasyPrint](https://weasyprint.org/) PDF generator. It allows you to generate PDF files from HTML string or URL.

The WeasyPrintBundle provides a simple integration for your Symfony project.

This bundle is massively inspired by [KnpLabs/KnpSnappyBundle](https://github.com/KnpLabs/KnpSnappyBundle), of which it aims to be a one-to-one substitute

Installation
------------

[](#installation)

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

`composer require pontedilana/weasyprint-bundle`

Then enable it in your kernel (a flex recipe is coming soon):

```
// config/bundles.php
