PHPackages                             slik/dompdf-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. slik/dompdf-bundle

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

slik/dompdf-bundle
==================

A wrapper for using DomPDF inside Symfony 2

9106.1k23[7 issues](https://github.com/SlikNL/DompdfBundle/issues)[4 PRs](https://github.com/SlikNL/DompdfBundle/pulls)PHP

Since Oct 30Pushed 9y ago10 watchersCompare

[ Source](https://github.com/SlikNL/DompdfBundle)[ Packagist](https://packagist.org/packages/slik/dompdf-bundle)[ RSS](/packages/slik-dompdf-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

What is DomPDFBundle?
=====================

[](#what-is-dompdfbundle)

This bundle provides a wrapper for using [DomPDF](https://github.com/dompdf/dompdf) inside Symfony2.

### Installation

[](#installation)

When using composer add the following to your composer.json

```
// composer.json
{
    //...

    "require": {
        //...
        "slik/dompdf-bundle" : "dev-master"
    }

    //...
}
```

and run `php composer.phar update slik/dompdf-bundle`.

Next add the following to your appkernel:

```
    // in AppKernel::registerBundles()
    $bundles = array(
        // Dependencies
        new Slik\DompdfBundle\SlikDompdfBundle();
    );
```

### Custom configuration

[](#custom-configuration)

Copy the dompdf\_config.*.inc.php.dist files to dompdf\_config.*.inc.php to your /app directory and follow the dompdf usage docs.

### Usage

[](#usage)

Whenever you need to turn something into a pdf just use this anywhere in your controller:

```
    // Set some html and get the service
    $html = 'Sample html';
    $dompdf = $this->get('slik_dompdf');

    // Generate the pdf
    $dompdf->getpdf($html);

    // Either stream the pdf to the browser
    $dompdf->stream("myfile.pdf");

    // Or get the output to handle it yourself
    $pdfoutput = $dompdf->output();
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance4

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1062751?v=4)[Christian Vermeulen](/maintainers/christianvermeulen)[@ChristianVermeulen](https://github.com/ChristianVermeulen)

---

Top Contributors

[![afjlambert](https://avatars.githubusercontent.com/u/1159693?v=4)](https://github.com/afjlambert "afjlambert (119 commits)")[![ChristianVermeulen](https://avatars.githubusercontent.com/u/1062751?v=4)](https://github.com/ChristianVermeulen "ChristianVermeulen (18 commits)")[![Littooy](https://avatars.githubusercontent.com/u/1835887?v=4)](https://github.com/Littooy "Littooy (2 commits)")[![lifeforms](https://avatars.githubusercontent.com/u/3464056?v=4)](https://github.com/lifeforms "lifeforms (1 commits)")

### Embed Badge

![Health badge](/badges/slik-dompdf-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/slik-dompdf-bundle/health.svg)](https://phpackages.com/packages/slik-dompdf-bundle)
```

###  Alternatives

[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.9k](/packages/tarfin-labs-easy-pdf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
