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.0k23[3 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 1mo ago

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

30

—

LowBetter than 64% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity38

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://www.gravatar.com/avatar/a75c096c380c179ba0a6aa478837f37bbe0b108239f2d5773e68a51450e9501b?d=identicon)[christianvermeulen](/maintainers/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

[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.2k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)[setasign/tfpdf

This class is a modified version of FPDF that adds UTF-8 support. The latest version is based on FPDF 1.85.

426.1M30](/packages/setasign-tfpdf)[aspera/xlsx-reader

Spreadsheet reader library for XLSX files

52742.2k5](/packages/aspera-xlsx-reader)

PHPackages © 2026

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