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.
http, https by default, configurable via the new $allowedSchemes constructor argument)removeTemporaryFiles() now only deletes files located inside the temporary folderphar:// checkbuildCommand() now verifies the binary is executable on the unescaped path and shell-escapes it before usesymfony/process minimal version to mitigate CVE-2026-24739--info, --quiet, --verbose, --debug, --version, --no-http-redirects, --fail-on-http-errors)--attachment-relationship and --xmp-metadata options--allowed-protocols option--pdf-tags option--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)disableTimeout() method to easily disable the new CLI timeout behaviorsymfony/process minimal version to mitigate CVE-2024-51736--srgb option--timeout option--pdf-forms)onlyMethods()--format option in Pdf class which is deprecated in WeasyPrint 53 and removed in WeasyPrint 54How can I help you explore Laravel packages today?