Registry / utility / spatie-browsershot

spatie-browsershot

JSON →
library5.4.0phppackagistunverified

Convert a webpage to an image or pdf using headless Chrome

composer require spatie/browsershot
INSTALL
IMPORT
SIG · SPATIE-BROWSERSHOT
S
spatie-browsershot
utilityphpv5.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Browsershot
use Spatie\Browsershot\Browsershot;

Convert a webpage to PDF

use Spatie\Browsershot\Browsershot; Browsershot::url('https://example.com')->save('example.pdf');
Debug
Known issues
gotchaRequires Node.js and Puppeteer/Chrome installed on the server
fix
Install Node.js and run `npm install puppeteer` or configure a remote Chrome instance
affects: >=5.0.0
Upgrade
Version history
5.4.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
spatie-browsershot — pip install spatie-browsershot · libregistry