automation

laravel-screenshot: Automate Web Page Screenshots

Automate web page screenshots with laravel-screenshot.
intermediate30 minutes💵 Free (self-hosted)
86 stars3 forksPHPGuide quality 8/10 · reviewed Jun 6Updated 8/7/2026100% free · open source
What it is

Take screenshots of web pages automatically with a simple PHP script.

Real use case example

"A founder wanting to impress potential investors can use laravel-screenshot to take a high-quality screenshot of their online demo and send it with every pitch email they send."

Best insideClaude Desktop
When to use it
  • Create product‑preview images for marketing emails or social posts automatically.
  • Archive visual snapshots of competitor sites for weekly reporting.
  • Build PDFs that embed live webpage renders (e.g., dashboards, invoices).
Ready-to-paste prompt
php artisan tinker --execute="Spatie\Screenshot\Screenshot::url('https://news.ycombinator.com')->save(public_path('hn.png'));"
Heads up: The package depends on a headless Chrome/Chromium binary; you must run `php artisan browsershot:install` (or have Chrome installed manually) before taking screenshots, otherwise you’ll see ‘Could not find Chrome binary’ errors.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/laravel-screenshot && curl -fsSL https://workflowstacks.com/api/skills/laravel-screenshot/claude-skill -o ~/.claude/skills/laravel-screenshot/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How laravel-screenshot: Automate Web Page Screenshots works
Codeflow
Free to inspect

Laravel-screenshot: Automate Web Page Screenshots is a small PHP project (~900 lines across 20 code files, plus 13 test files). Setup is light: install PHP, run one command. Last commit 2 months ago, MIT license, has a test suite.

Size
Small codebase
~900 lines · 20 code files · 7 min skim
Setup
Light setup
Install PHP, run one command.
Runs on
PHP
No API keys detected
PHP 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    composer.json
    Dependencies and the commands it exposes
  3. 3
    src/FakeQueuedScreenshotResponse.php
    Inside src/ — the main logic begins here
What's in each folder
src/Core code — the actual logic17 files
docs/Documentation21 files
workbench/Folder2 files
config/Configuration1 files
resources/Folder1 files
tests/Tests — proof it works13 files
.github/CI / automation (GitHub Actions)6 files
READMEHas testsDocumentedCI checksMIT licenseUpdated 2 mo ago
Quick Actions
Details
Creator
spatie
Language
PHP
Category
automation
Published
2/12/2026

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/laravel-screenshot.svg)](https://workflowstacks.com/skills/laravel-screenshot?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.

Do this with a working workflow

Pages we wrote and tested that put a skill like this to work — importable n8n templates, outcome guides and Claude Desktop configs.