PHPackages                             rdmumayan/html2pdf-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. rdmumayan/html2pdf-bundle

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

rdmumayan/html2pdf-bundle
=========================

Forked version of Tristan's html2pdf-bundle. Use HTML2PDF as a Symfony2 Service

0.1.0(7y ago)0156MITPHPPHP &gt;=5.4

Since Nov 21Pushed 7y agoCompare

[ Source](https://github.com/rdmumayan/EnseparHtml2pdfBundle)[ Packagist](https://packagist.org/packages/rdmumayan/html2pdf-bundle)[ Docs](https://github.com/OwlyCode/EnseparHtml2pdfBundle)[ RSS](/packages/rdmumayan-html2pdf-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (6)Used By (0)

EnseparHtml2pdfBundle
=====================

[](#enseparhtml2pdfbundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/395887cb5b823eebb1492563d8318a0c7b4eee0a3aa94942032c7964f7858980/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f30653136623639362d306461332d346566632d623835362d3630343239613936373262342f6d696e692e706e67)](https://insight.sensiolabs.com/projects/0e16b696-0da3-4efc-b856-60429a9672b4)[![Build Status](https://camo.githubusercontent.com/b71f6de5f38e3ea22c75279dda730637769c74370b56331b4a0ecf2b5a5d15f5/68747470733a2f2f7472617669732d63692e6f72672f4f776c79436f64652f456e736570617248746d6c3270646642756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/OwlyCode/EnseparHtml2pdfBundle)

Html2pdf for Symfony 2 as a service.

How to install ?
----------------

[](#how-to-install-)

Just add this to your composer.json file:

```
"require": {
  ...
  "ensepar/html2pdf-bundle" : "~2.0"
}
```

Enable it in the Kernel

```
new Ensepar\Html2pdfBundle\EnseparHtml2pdfBundle(),
```

How to use ?
------------

[](#how-to-use-)

In your action:

```
$html2pdf = $this->get('html2pdf_factory')->create();
```

You can pass every option you would pass to html2pdf, for instance :

```
$html2pdf = $this->get('html2pdf_factory')->create('P', 'A4', 'en', true, 'UTF-8', array(10, 15, 10, 15));

```

If the previous arguments are not provided, the factory uses its own default values. You can change this default values by adding the bundle configuration to your `app/config/config.yml` :

```
ensepar_html2pdf:
    orientation: P
    format: A4
    lang: en
    unicode: true
    encoding: UTF-8
    margin: [10,15,10,15]
```

How to run the tests ?
----------------------

[](#how-to-run-the-tests-)

```
composer install
phpunit

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.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 ~493 days

Total

5

Last Release

2579d ago

Major Versions

1.0.x-dev → 3.0.x-dev2016-01-02

PHP version history (2 changes)1.0.x-devPHP &gt;=5.3.2

0.0.0PHP &gt;=5.4

### Community

Maintainers

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

---

Top Contributors

[![OwlyCode](https://avatars.githubusercontent.com/u/1631270?v=4)](https://github.com/OwlyCode "OwlyCode (27 commits)")[![ridamaum](https://avatars.githubusercontent.com/u/4272436?v=4)](https://github.com/ridamaum "ridamaum (4 commits)")[![EricGrivilers](https://avatars.githubusercontent.com/u/2196100?v=4)](https://github.com/EricGrivilers "EricGrivilers (2 commits)")[![kl3sk](https://avatars.githubusercontent.com/u/2953145?v=4)](https://github.com/kl3sk "kl3sk (2 commits)")[![Sevrahk](https://avatars.githubusercontent.com/u/3979553?v=4)](https://github.com/Sevrahk "Sevrahk (1 commits)")[![JeremYzalis](https://avatars.githubusercontent.com/u/1381381?v=4)](https://github.com/JeremYzalis "JeremYzalis (1 commits)")[![LeJeanbono](https://avatars.githubusercontent.com/u/11347342?v=4)](https://github.com/LeJeanbono "LeJeanbono (1 commits)")[![94noni](https://avatars.githubusercontent.com/u/1358361?v=4)](https://github.com/94noni "94noni (1 commits)")

---

Tags

pdfTCPDFhtml2pdf

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rdmumayan-html2pdf-bundle/health.svg)

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

###  Alternatives

[tecnickcom/tcpdf

TCPDF is a PHP class for generating PDF documents and barcodes.

4.5k101.8M472](/packages/tecnickcom-tcpdf)[spipu/html2pdf

Html2Pdf is a HTML to PDF converter written in PHP - It uses TCPDF - OFFICIAL PACKAGE

1.8k10.6M45](/packages/spipu-html2pdf)[tecnickcom/tc-lib-pdf

PHP PDF Library

1.8k452.3k7](/packages/tecnickcom-tc-lib-pdf)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[ensepar/html2pdf-bundle

Use HTML2PDF as a Symfony Service

27669.3k](/packages/ensepar-html2pdf-bundle)[spiritix/php-chrome-html2pdf

A PHP library for converting HTML to PDF using Google Chrome

153472.0k3](/packages/spiritix-php-chrome-html2pdf)

PHPackages © 2026

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