PHPackages                             rockett/weasyprint - 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. rockett/weasyprint

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

rockett/weasyprint
==================

A feature-rich WeasyPrint wrapper for generating PDFs from HTML and CSS, with support for PDF/A, PDF/UA, attachments, and optional Laravel integration.

v11.0.1(2mo ago)30224.7k↓29.1%8ISCPHPPHP ^8.3

Since Sep 16Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/mikerockett/weasyprint)[ Packagist](https://packagist.org/packages/rockett/weasyprint)[ RSS](/packages/rockett-weasyprint/feed)WikiDiscussions 11.x Synced 2d ago

READMEChangelogDependencies (28)Versions (48)Used By (0)

WeasyPrint for PHP
==================

[](#weasyprint-for-php)

[![License](https://camo.githubusercontent.com/1b55a6a94bbde10f95f227f4257415ef844113692099b444ff043cc021359e27/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4953432d677265656e2e737667)](https://camo.githubusercontent.com/1b55a6a94bbde10f95f227f4257415ef844113692099b444ff043cc021359e27/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4953432d677265656e2e737667)[![Version](https://camo.githubusercontent.com/b9d475f23067f34507f5f8d553d98d42bc28d6ac09aa3f3b380edd849cbe3516/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f636b6574742f77656173797072696e743f6c6162656c3d52656c65617365)](https://camo.githubusercontent.com/b9d475f23067f34507f5f8d553d98d42bc28d6ac09aa3f3b380edd849cbe3516/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f636b6574742f77656173797072696e743f6c6162656c3d52656c65617365)[![Downloads](https://camo.githubusercontent.com/5a37ddefe47d1fdebf3db87c3f7e5087cb7af279bb0b126f913ac58b427e4c83/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f726f636b6574742f77656173797072696e743f6c6162656c3d496e7374616c6c73)](https://camo.githubusercontent.com/5a37ddefe47d1fdebf3db87c3f7e5087cb7af279bb0b126f913ac58b427e4c83/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f726f636b6574742f77656173797072696e743f6c6162656c3d496e7374616c6c73)[![Tests](https://camo.githubusercontent.com/71af26578c95801eb48e1477aece8e8488287e8d69c31126b1f948480af509a3/68747470733a2f2f6769742e726f636b6574742e70772f726f636b6574742f706970656c696e652f616374696f6e732f776f726b666c6f77732f74657374732e796d6c2f62616467652e737667)](https://camo.githubusercontent.com/71af26578c95801eb48e1477aece8e8488287e8d69c31126b1f948480af509a3/68747470733a2f2f6769742e726f636b6574742e70772f726f636b6574742f706970656c696e652f616374696f6e732f776f726b666c6f77732f74657374732e796d6c2f62616467652e737667)

A feature-rich PHP wrapper for the [WeasyPrint Document Factory](https://weasyprint.org/).

Documentation
-------------

[](#documentation)

You can view the documentation at **[weasyprint.rockett.pw](https://weasyprint.rockett.pw)**.

Changelog and Upgrade Guide
---------------------------

[](#changelog-and-upgrade-guide)

- To see what has changed recently in the package, you can read [CHANGELOG.md](CHANGELOG.md).
- The upgrade path from one version to the next is documented in [UPGRADING.md](UPGRADING.md).

Open Source and Contributing
----------------------------

[](#open-source-and-contributing)

[Licensed under ISC](LICENSE.md), WeasyPrint for PHP is an [open-source](http://opensource.com/resources/what-open-source) project, and is [free](https://en.wikipedia.org/wiki/Free_software) to use. In fact, it will always be open-source, and will always be free to use. Forever. 🎉

If you would like to contribute a feature, enhancement or bug-fox to the package, please read [CONTRIBUTING.md](CONTRIBUTING.md).

If you would like to support the development of WeasyPrint for PHP, please consider [making a small donation via PayPal](https://paypal.me/mrockettza/20).

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance91

Actively maintained with recent releases

Popularity46

Moderate usage in the ecosystem

Community10

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 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 ~56 days

Recently: every ~9 days

Total

44

Last Release

63d ago

Major Versions

v4.1.0 → v7.0.02023-02-17

7.x-dev → v8.0.02023-10-17

v8.1.3 → v9.0.02024-05-01

9.x-dev → v10.0.02025-01-30

10.x-dev → v11.0.02026-04-25

PHP version history (6 changes)v1.0.0PHP &gt;=7.1.3

v4.0.0PHP &gt;=7.3.0

v5.0.0PHP ^8.0

v7.0.0PHP ^8.1

v9.0.0PHP ^8.2

v11.0.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/118113?v=4)[Rockett Williams](/maintainers/rockett)[@rockett](https://github.com/rockett)

---

Top Contributors

[![mikerockett](https://avatars.githubusercontent.com/u/4586280?v=4)](https://github.com/mikerockett "mikerockett (101 commits)")

---

Tags

laravellaravel-weasyprintpdf-generationphpweasyprintlaravelpdfcssprintdocumentWeasyPrinthtml-to-pdfpdf-apdf-ua

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/rockett-weasyprint/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.9k157.3M893](/packages/maatwebsite-excel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M306](/packages/laravel-horizon)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[pontedilana/php-weasyprint

PHP library allowing PDF generation from an url or a html page. Wrapper for Kozea/WeasyPrint.

781.2M17](/packages/pontedilana-php-weasyprint)[fruitcake/laravel-weasyprint

WeasyPrint for Laravel

2144.6k](/packages/fruitcake-laravel-weasyprint)

PHPackages © 2026

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