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.

Current Version: 5.1.0
Last Updated: 2025-11-17
PHP Requirement: ^8.2
Dependencies:
symfony/process
⚠️ To ensure full functionality, the above dependencies might be required.

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.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 5.1.0

Download Download v5.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.