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

Knp Snappy Laravel Package

knplabs/knp-snappy

PHP wrapper for wkhtmltopdf/wkhtmltoimage to generate PDFs and images (thumbnails, snapshots) from URLs or HTML. Simple API, configurable binaries and options, with integrations available for Symfony and Laravel.

View on GitHub
Deep Wiki
Context7
1.7.2
  • Fix: prevent deletion of files outside the temporary directory and improve test coverage
1.7.1

[!IMPORTANT] This version introduces a breaking change. The $binaryPath is checked with the is_executable PHP function. Thus, it is required to use an absolute or relative path without any argument (use the $options array or the setOption method instead). See the issue #550

  • Fix: ensure binary is executable in buildCommand
1.7.0
  • Fix: enhance Pdf constructor to allow specific schemes (see #544)
  • Chore: update PHPStan to v2 (see #541)
  • Doc: add warning based on wkhtmltopdf recommendations (see #528)
1.6.0
  • Feat: allow Symfony 8
  • Test: migrate to PHPUnit 9 (see #532)
  • CI: add tests for PHP 8.5
  • CI: upgrade GitHub Actions runner to Ubuntu 22.04
1.5.1
  • Fix: PHP 8.4 deprecations
1.5.0
  • Feat: support Symfony 7
1.4.4
  • Fix: allowed output file protocols on Windows
1.4.3
  • Fix: security advisory GHSA-92rv-4j2h-8mjj
  • CI: add tests for PHP 8.3, bump dev tests to Symfony 6.4
1.4.2
1.4.1
  • Fix: logger aware interface issue
1.4.0
  • Feat: allow Symfony 6
1.3.1
  • Fix: function signatures incompatibilities with previous version
  • Build: migrate to GitHub Actions
1.3.0
  • Allow newer versions of the psr/log package
  • Add PHPStan level 8 CI check
  • Add CS fixer CI check
  • Add contributing guidelines and code of conduct
1.2.1
  • Add resetOption method
  • Explicitly implement LoggerAwareInterface
1.2.0
  • Symfony 5 compatibility for the Process component
  • Fix PDF options order
  • Add missing documentation for bypass-proxy-for option
  • Drop support for unmaintained Symfony versions (only supported versions)
  • Fix documentation for displaying PDF in the browser
1.1.0
  • Add bypass-proxy-for option added in 0.12.3 (see #302)
  • Fix symfony/process 4.2 deprecation notice (see #331)
  • Drop suppor for unmaintained PHP versions (5.6 and 7.0, see #337
  • Drop support for unmaintained symfony/process versions (see #337)
  • Pass on error code in checkProcessStatus (see #328)

Thanks to @joshpme, @drigani, @fbourigault, @NiR- and @leimd for their work.

1.0.4
  • Support cache-dir for Image generation (see #297).

Thank you @dimitrilahaye for their work.

1.0.3
  • Add support to Symfony 4 (#290)
  • Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase (#287)

Credits go to @michaelperrin and @carusogabriel.

1.0.2

A BC break was introduced in v1.0.0: using objects castable to string with a cyclic dependency to the generator as option value would break setOption() / setOptions() methods.

  • Use logger context rather than var_export to log option values (see #283)

Credits go to: @barryvdh.

1.0.1
  • Fix Call to a member function debug() on null logger (see #270)
1.0.0
  • Don't check if it's a file when the path is bigger than PHP_MAXPATHLEN (see #224)
  • Pass image-dpi and image-quality options as integer (see #251)
  • Improve documentation readability (see #255)
  • Add logging capabilities to generators (see #264)
  • Add some more frequent questions/issues to the FAQ (see #263, #265, #266)

Credits go to: @wouterbulten, @martinssipenko, @Herz3h, @akovalyov, @NiR-.

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.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor