PHP Package: spatie/browsershot
Browsershot is a PHP library for creating screenshots of web pages using headless Chrome. It allows you to capture full page screenshots, PDFs, and more.
Package Description
Browsershot by Spatie is a powerful PHP library that leverages headless Chrome to generate high-quality screenshots and PDFs of web pages. With Browsershot, developers can easily automate the process of capturing web page content for various use cases, such as testing, monitoring, and archiving.
Download Latest Version: 5.1.0
Previous Versions
Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/browsershot/5.1.0/loader.php';
require_once 'libs/symfony/process/7.4.0/loader.php';
use Spatie\Browsershot\Browsershot;
$obj = new Browsershot();
echo '✅ Test OK: ' . get_class($obj);
?>We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.
