Browsershot - Convert html to an image, pdf or string
Browershot is a package can convert a webpage to an image or pdf. The conversion is done behind the scenes by Puppeteer which controls a headless version of Google Chrome.
use Spatie\Browsershot\Browsershot;
// an image will be saved
Browsershot::url('https://example.com')->save($pathToImage);
https://freek.dev/793-easily-convert-webpages-to-images-using-php
https://github.com/spatie/browsershot
License:
Tech:
Tags: