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

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

nmalo/dompdf-bundle
===================

A wrapper for using DomPDF inside Symfony 2 (fork from SlikNL/DompdfBundle)

1.0.1(10y ago)06.2kAll Rights ReservedPHPPHP &gt;=5.3

Since Aug 27Pushed 10y agoCompare

[ Source](https://github.com/nmalo/DompdfBundle)[ Packagist](https://packagist.org/packages/nmalo/dompdf-bundle)[ RSS](/packages/nmalo-dompdf-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)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

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.2% 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3917d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0790be9d53f318c79965d77926592c677c054b3d7997b92a75a5e0aa2aa5e72f?d=identicon)[nmalo](/maintainers/nmalo)

---

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)")[![nmalo](https://avatars.githubusercontent.com/u/5011596?v=4)](https://github.com/nmalo "nmalo (4 commits)")[![Littooy](https://avatars.githubusercontent.com/u/1835887?v=4)](https://github.com/Littooy "Littooy (2 commits)")

---

Tags

symfonybundledevelopment

### Embed Badge

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

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

###  Alternatives

[nucleos/dompdf-bundle

This bundle provides a wrapper for using dompdf inside symfony.

54882.8k1](/packages/nucleos-dompdf-bundle)[roromix/spreadsheetbundle

This is a Symfony 7.1+ Bundle helps you to read and write Spreadsheet files (including pdf, xls, xlsx, odt, csv), thanks to the PHPSpreadsheet library

24410.2k1](/packages/roromix-spreadsheetbundle)[onurb/excel-bundle

Symfony Bundle to read or write Excel file (including pdf, xlsx, odt), using phpoffice/phpspreadsheet library (replacement of phpoffice/phpexcel, abandonned)

15332.0k](/packages/onurb-excel-bundle)

PHPackages © 2026

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