spatie/laravel-screenshot
Driver-based Laravel package for taking web page screenshots with great defaults. Use Browsershot (Chromium) or Cloudflare Browser Rendering, customize viewport/format/quality, save to files, and easily fake/assert screenshots in tests.
The laravel-screenshot package requires PHP 8.4+ and Laravel 12+.
The additional requirements depend on which driver you use:
The Browsershot driver uses Browsershot under the hood to take screenshots. You can find the necessary requirements here. This includes Node.js and a Chrome/Chromium binary.
The Cloudflare driver uses Cloudflare's Browser Rendering API. This driver does not require Node.js or a Chrome binary on your server. You will need:
How can I help you explore Laravel packages today?