pontedilana/php-weasyprint
PHP library allowing PDF generation from an url or a html page. Wrapper for Kozea/WeasyPrint.
2.7.0
1.3M downloads/mo
#3843 most downloaded on Packagist
pontedilana/php-weasyprint
What this package is like to depend on
Last release 2 months ago
03 Jun 2026
Release timing varies
gaps range from 8 days to 12 months
Some releases are documented
notes for 10 of 23 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
23 releases · first in 2021
7 releases in the last 12 months
see the full history below
Release timeline
23 releases · Jul 2021 to Jun 2026Releases
latest 23-
2.7.003 Jun 2026 -
2.6.025 May 2026Release notes
Open source →Security
- Fix potential SSRF and local file disclosure: option URLs are fetched server-side only when their scheme is allowed (
http,httpsby default, configurable via the new$allowedSchemesconstructor argument) - Fix potential arbitrary file deletion at shutdown:
removeTemporaryFiles()now only deletes files located inside the temporary folder - Fix PHAR deserialization via the output filename (CVE-2023-28115 case-insensitive bypass): the output path is now validated against a scheme allow-list instead of a case-sensitive
phar://check
- Fix potential SSRF and local file disclosure: option URLs are fetched server-side only when their scheme is allowed (
-
2.5.125 May 2026Release notes
Open source →Security
- Fix potential shell-command injection through the WeasyPrint binary path:
buildCommand()now verifies the binary is executable on the unescaped path and shell-escapes it before use - Update
symfony/processminimal version to mitigate CVE-2026-24739
- Fix potential shell-command injection through the WeasyPrint binary path:
-
2.5.003 Apr 2026Release notes
Open source →Added
- Support WeasyPrint options (
--info,--quiet,--verbose,--debug,--version,--no-http-redirects,--fail-on-http-errors)
- Support WeasyPrint options (
-
2.4.020 Jan 2026Release notes
Open source →Added
- Support WeasyPrint 68.0 new
--attachment-relationshipand--xmp-metadataoptions
- Support WeasyPrint 68.0 new
-
2.3.002 Dec 2025Release notes
Open source →Added
- Support WeasyPrint 67.0 new
--allowed-protocolsoption - Support Symfony 8.0
- More tests
- Support WeasyPrint 67.0 new
-
2.2.019 Nov 2025 -
2.1.024 Jul 2025 -
2.0.010 Apr 2025Release notes
Open source →Added
- Add
--timeoutoption to the WeasyPrint command-line call by default. This improves consistency with the internal process timeout already applied by Symfony Process. If you're running WeasyPrint inside a worker, queue, or other timeout-managed environment, you can disable it using$pdf->disableTimeout()or$pdf->setTimeout(null). (#15) - Add
disableTimeout()method to easily disable the new CLI timeout behavior
Security
- Update
symfony/processminimal version to mitigate CVE-2024-51736
- Add
-
1.5.004 Nov 2024 -
1.4.020 Nov 2023Nothing published for this version
-
1.3.007 Oct 2023Nothing published for this version
-
1.2.011 May 2023Nothing published for this version
-
1.1.126 Apr 2023Nothing published for this version
-
1.1.003 Apr 2023Nothing published for this version
-
1.0.117 Jan 2023Nothing published for this version
-
1.0.016 Jan 2023Nothing published for this version
-
0.13.016 Jan 2023Nothing published for this version
-
0.12.009 Dec 2022Nothing published for this version
-
0.11.028 Feb 2022Nothing published for this version
-
0.10.129 Dec 2021Nothing published for this version
-
0.10.029 Dec 2021Nothing published for this version
-
0.9.016 Jul 2021Nothing published for this version