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

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

railken/dompdf-bundle
=====================

This bundle provides a wrapper for using dompdf inside symfony.

1.0.3(9y ago)0119MITPHPPHP ^7.0

Since Jun 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/railken/DompdfBundle)[ Packagist](https://packagist.org/packages/railken/dompdf-bundle)[ Docs](https://core23.de)[ RSS](/packages/railken-dompdf-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (8)Versions (5)Used By (0)

What is DompdfBundle?
=====================

[](#what-is-dompdfbundle)

[![Latest Stable Version](https://camo.githubusercontent.com/f9a454f1c8eab626d646edeb3733e72bf2dd9ffd16ccb5bd508aadc100fdaea9/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f646f6d7064662d62756e646c652f762f737461626c65)](https://packagist.org/packages/core23/dompdf-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/67b2f16010a92e400fcb2dcc1cb15488b74172015af781a63302068256d43f8e/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f646f6d7064662d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/core23/dompdf-bundle)[![License](https://camo.githubusercontent.com/985d5558d697f373b9bf161195e88a82fd373bfe98e19f0b34afa328b90fa745/68747470733a2f2f706f7365722e707567782e6f72672f636f726532332f646f6d7064662d62756e646c652f6c6963656e7365)](https://packagist.org/packages/core23/dompdf-bundle)

[![Build Status](https://camo.githubusercontent.com/062e37e4ac12743cee46d2e7703317e09e2ff166742de7b696098b253aac942c/68747470733a2f2f7472617669732d63692e6f72672f636f726532332f446f6d70646642756e646c652e737667)](https://travis-ci.org/core23/DompdfBundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ade5648a33b9d953000369ec182b29feb5f4b8368053419431a6495da762e67f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f726532332f446f6d70646642756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/core23/DompdfBundle)[![Code Climate](https://camo.githubusercontent.com/36a1e3c64736da0d08745013e280a9c06d2016c5dcc3a57fe780a6a377625a39/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f636f726532332f446f6d70646642756e646c652f6261646765732f6770612e737667)](https://codeclimate.com/github/core23/DompdfBundle)[![Coverage Status](https://camo.githubusercontent.com/94e4294e24696d0c944f8ca59abe299aaab66781582c5ea71fb977983a0e39a6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f636f726532332f446f6d70646642756e646c652f62616467652e737667)](https://coveralls.io/r/core23/DompdfBundle)[![SensioLabsInsight](https://camo.githubusercontent.com/92428fb7a4411b7058afdd1ec6e548f63e2bc132ba7d3e5a17cd532354203213/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33373434396537632d313332622d343234632d613965632d3937613565393961306266302f6d696e692e706e67)](https://insight.sensiolabs.com/projects/37449e7c-132b-424c-a9ec-97a5e99a0bf0)

[![Donate to this project using Flattr](https://camo.githubusercontent.com/d79e412f78041f87e203449041ad81848a8405cf0f3c622c51e3bad0c2a4b599/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666c617474722d646f6e6174652d79656c6c6f772e737667)](https://flattr.com/profile/core23)[![Donate to this project using PayPal](https://camo.githubusercontent.com/0d6e4d8b50b5983a58205941b1a581b1305903393b7a39da574e3f60af3c7f5b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652d79656c6c6f772e737667)](https://paypal.me/gripp)

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

### Installation

[](#installation)

```
php composer.phar require core23/dompdf-bundle

```

### Enabling the bundle

[](#enabling-the-bundle)

```
    // app/AppKernel.php

    public function registerBundles()
    {
        return array(
            // ...

            new Core23\DompdfBundle\Core23DompdfBundle(),

            // ...
        );
    }
```

### Usage

[](#usage)

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

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

// Stream the pdf to the browser
$dompdf->streamHtml($html, "document.pdf");

// Get binary content of the pdf document
$dompdf->getPdf($html);
```

### Configuration

[](#configuration)

You can configure each dompdf option under the `config` key.

```
core23_dompdf:
    defaults:
        dpi: 150
        defaultPaperSize: A4
        ...
```

This bundle is available under the [MIT license](LICENSE.md).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 96.8% 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 ~105 days

Total

4

Last Release

3307d ago

PHP version history (2 changes)1.0.0PHP ^5.6 || ^7.0

1.0.2PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea4a9e56b247008aea4d20bb8a555a9f0cb69d0ac69aa8417b29fc37efa2eb5c?d=identicon)[railken](/maintainers/railken)

---

Top Contributors

[![core23](https://avatars.githubusercontent.com/u/3440437?v=4)](https://github.com/core23 "core23 (91 commits)")[![railken](https://avatars.githubusercontent.com/u/26530231?v=4)](https://github.com/railken "railken (3 commits)")

---

Tags

symfonybundlepdfdompdf

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[nucleos/dompdf-bundle

This bundle provides a wrapper for using dompdf inside symfony.

54882.8k1](/packages/nucleos-dompdf-bundle)[sensiolabs/gotenberg-bundle

A Symfony bundle that provides seamless integration with Gotenberg for generating PDFs and screenshots from various sources (HTML, Markdown, Office documents, URLs) with a clean, builder-based API.

210210.4k2](/packages/sensiolabs-gotenberg-bundle)[ensepar/html2pdf-bundle

Use HTML2PDF as a Symfony Service

27669.3k](/packages/ensepar-html2pdf-bundle)[spraed/pdf-generator-bundle

This bundle creates (multiple) PDFs in Symfony from Twig/HTML templates.

52516.3k](/packages/spraed-pdf-generator-bundle)

PHPackages © 2026

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