PHPackages                             rezozero/pdfsafe - 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. rezozero/pdfsafe

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

rezozero/pdfsafe
================

Twig extension to clean-up an HTML content for PDF generation (psliwa/php-pdf)

1.1.2(5y ago)02001MITPHP

Since May 29Pushed 5y ago2 watchersCompare

[ Source](https://github.com/rezozero/pdfsafe)[ Packagist](https://packagist.org/packages/rezozero/pdfsafe)[ RSS](/packages/rezozero-pdfsafe/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (7)Used By (1)

PdfSafe Twig extension
======================

[](#pdfsafe-twig-extension)

[![Packagist](https://camo.githubusercontent.com/a42bc3b39965c55b4b35d455135ee7c875df52790c699d1eb192a079d26c8073/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72657a6f7a65726f2f706466736166652e737667)](https://packagist.org/packages/rezozero/pdfsafe)

Clean a HTML/XML input to be generated in PDF by [psliwa/php-pdf](https://github.com/psliwa/PHPPdf) library.

Install
-------

[](#install)

```
composer require rezozero/pdfsafe
```

Add this extension in your Twig environment.

```
use RZ\PdfSafe\PdfSafeExtension;
use Symfony\Component\HttpFoundation\Request;

$container->extend('twig.extensions', function ($extensions, $c) {
    /** @var Request $request */
    $request = $c['request'];
    $extensions->add(new PdfSafeExtension($request->getSchemeAndHttpHost()));
    return $extensions;
});
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~260 days

Recently: every ~230 days

Total

6

Last Release

1972d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/380026?v=4)[Ambroise Maupate](/maintainers/ambroisemaupate)[@ambroisemaupate](https://github.com/ambroisemaupate)

---

Top Contributors

[![ambroisemaupate](https://avatars.githubusercontent.com/u/380026?v=4)](https://github.com/ambroisemaupate "ambroisemaupate (9 commits)")

### Embed Badge

![Health badge](/badges/rezozero-pdfsafe/health.svg)

```
[![Health](https://phpackages.com/badges/rezozero-pdfsafe/health.svg)](https://phpackages.com/packages/rezozero-pdfsafe)
```

###  Alternatives

[drutiny/drutiny

This is a generic Drupal 7 and Drupal 8 site auditing and optional remediation tool.

132122.2k17](/packages/drutiny-drutiny)[reportico-web/reportico

Reportico Open Source PHP Report Designer

17120.5k2](/packages/reportico-web-reportico)[jgrygierek/batch-entity-import-bundle

Importing entities with preview and edit features for Symfony.

101.1M1](/packages/jgrygierek-batch-entity-import-bundle)[bobv/latex-bundle

Latex and pdf generator for Symfony 2

2432.7k](/packages/bobv-latex-bundle)

PHPackages © 2026

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