PHPackages                             rev42/revpdf-lib - 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. rev42/revpdf-lib

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

rev42/revpdf-lib
================

PDF generating library

2.1.1(13y ago)2100↓100%GPL-3.0PHPPHP &gt;=5.3.3CI failing

Since Mar 15Pushed 11y ago1 watchersCompare

[ Source](https://github.com/rev42/revpdf-lib)[ Packagist](https://packagist.org/packages/rev42/revpdf-lib)[ Docs](http://www.revpdf.org)[ RSS](/packages/rev42-revpdf-lib/feed)WikiDiscussions master Synced 1mo ago

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

[RevPDFLib](http://www.revpdf.org) [![Build Status](https://camo.githubusercontent.com/c1301637cd9769e413e1404ee9daaca5db81f2b251f2243a4befc8ba93dd4d86/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f72657634322f7265767064662d6c69622e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/rev42/revpdf-lib)
===============================================================================================================================================================================================================================================================================================================================

[](#revpdflib-)

RevPDFLib provides the building block to create PDF file for [RevPDF](http://www.revpdf.org) web application.

RevPDFLib parses an XML file (build manually or using [RevPDF](http://www.revpdf.org)) and generates PDF file. This library can be used as a standalone application.

`RevPDFLib` takes a XML file as an input and output a PDF file.

"Hello World" example:

```

```

Calling RevPDFLib is really easy:

```
defined('BASE_DIR') || define('BASE_DIR', dirname(__file__) . '/../');
require BASE_DIR . 'vendor/autoload.php';

$lib = new RevPDFLib\Application();
$data = simplexml_load_file('helloworld.xml');
$lib->export($data);

```

Please read the MANUAL for further explanations (how to install, how to create a compatible xml file...)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

4803d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6211b0724ebb17d0c649b5046532dd07071ce8c4f505138a6dace129bda54e79?d=identicon)[rev42](/maintainers/rev42)

---

Top Contributors

[![rev42](https://avatars.githubusercontent.com/u/681069?v=4)](https://github.com/rev42 "rev42 (198 commits)")[![ocornu-mediastay](https://avatars.githubusercontent.com/u/2648209?v=4)](https://github.com/ocornu-mediastay "ocornu-mediastay (2 commits)")

---

Tags

phppdfrevpdf

### Embed Badge

![Health badge](/badges/rev42-revpdf-lib/health.svg)

```
[![Health](https://phpackages.com/badges/rev42-revpdf-lib/health.svg)](https://phpackages.com/packages/rev42-revpdf-lib)
```

###  Alternatives

[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)[padam87/rasterize-bundle

HTML to PDF Symfony bundle. Works with Puppeteer, PhantomJS, and more.

1579.4k](/packages/padam87-rasterize-bundle)[nucleos/dompdf-bundle

This bundle provides a wrapper for using dompdf inside symfony.

54882.8k1](/packages/nucleos-dompdf-bundle)[pontedilana/weasyprint-bundle

Easily create PDF in Symfony by converting Twig/HTML templates.

40774.4k](/packages/pontedilana-weasyprint-bundle)[contao-community-alliance/dc-general

Universal data container for Contao

1578.3k86](/packages/contao-community-alliance-dc-general)[php-flasher/flasher-symfony

Integrate flash notifications into Symfony projects effortlessly with PHPFlasher. Improve user experience and application feedback loops easily.

141.3M20](/packages/php-flasher-flasher-symfony)

PHPackages © 2026

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