Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Weasyprint Laravel Package

pontedilana/php-weasyprint

PHP wrapper for WeasyPrint (v60+) to generate PDFs from URLs or HTML. Snappy-like API with output streaming or file generation, supports WeasyPrint CLI options (encoding, media type, stylesheets, attachments) and timeouts.

View on GitHub
Deep Wiki
Context7
2.6.0

Security

  • Fix potential SSRF and local file disclosure: option URLs are fetched server-side only when their scheme is allowed (http, https by default, configurable via the new $allowedSchemes constructor 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
2.5.1

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/process minimal version to mitigate CVE-2026-24739
2.5.0

Added

  • Support WeasyPrint options (--info, --quiet, --verbose, --debug, --version, --no-http-redirects, --fail-on-http-errors)
2.4.0

Added

  • Support WeasyPrint 68.0 new --attachment-relationship and --xmp-metadata options
2.3.0

Added

  • Support WeasyPrint 67.0 new --allowed-protocols option
  • Support Symfony 8.0
  • More tests
2.2.0

Added

  • Support PHP 8.5
  • More tests
2.1.0

Added

  • Support WeasyPrint 66.0 new --pdf-tags option
2.0.0

Added

  • Add --timeout option 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

1.5.0

Added

  • Support WeasyPrint 63.0 new --srgb option
  • Add support for PHP 8.4
1.4.0

Changed

  • Add support for Symfony 7.0 and PHP 8.3
1.3.0

Added

  • Support WeasyPrint 60.0 new --timeout option
1.2.0

Added

  • Support WeasyPrint 59.0b1 new options
1.1.1

Security

  • Implement countermeasures for CVE-2023-28115
1.1.0

Added

  • Support WeasyPrint 58 new option (--pdf-forms)

Changed

  • Always pass through timeout when creating a process (#7)
1.0.1

Fixed

  • Fix logging of errors
1.0.0

Fixed

  • Fix handling of repeatable options (attachment and stylesheet)

Changed

  • Bump symfony/process up to ^6.2

Removed

  • Remove Image class
  • Remove Version class
  • Remove support for Symfony 4.4
0.13.0

Added

  • Support WeasyPrint 56 new options

Deprecated

  • Deprecate image generator
  • Deprecate Version class
0.12.0

Changed

  • Add support for PHP 8.2
0.11.0

Changed

  • Bump symfony/process up to ^6.0 and psr/log up to ^3.0
0.10.1

Fixed

  • Refactor tests to use onlyMethods()
0.10.0

Changed

  • Unset --format option in Pdf class which is deprecated in WeasyPrint 53 and removed in WeasyPrint 54
0.9.0

Added

  • First public release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope