spatie/browsershot
Convert HTML to an image, PDF or string observed · 2026-08-28
Health v2 · maintenance only
91/100
- Activity 91
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 14.5
- age_days: 4506
- days_rel: 99
- days_push: 55
- n_releases_24m: 21
Adoption not part of the score
5241 stars · 508 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A PHP library that converts web pages or raw HTML into images, PDFs, or rendered HTML strings using Puppeteer and headless Chrome. It supports screenshots, PDF generation, JavaScript-executed body HTML, and inspecting triggered network requests.
Use cases
- convert html to pdf in php
- take a screenshot of a webpage
- render html to an image
- get page html after javascript executes
- generate pdf from url
- capture og images from html
When to choose
- you need pixel-accurate PDF or image rendering of HTML from PHP
- the target page relies on JavaScript rendering
- you want a simple fluent API over headless Chrome
When to avoid
- you cannot install Node.js and Puppeteer on the server
- you need a pure-PHP solution without external browser dependencies
- you only need simple HTML-to-text conversion
Facets
library · maturity active
image-processing pdf web-scraping developer-tools web-development pdf developer-tools php windows serverless puppeteer headless-chrome screenshot html-to-pdf html-to-image laravel automation nodejs linux macos
10 sources
- readme: https://github.com/spatie/browsershot · fetched 2026-08-28 · 963ff784d1a4
- homepage: https://spatie.be/docs/browsershot · fetched 2026-08-29 · 39553397dc41
- site_page: https://spatie.be/docs · fetched 2026-08-29 · 08e024d86d95
- site_page: https://spatie.be/about-us · fetched 2026-08-29 · d3cb88e4b34c
- site_page: https://spatie.be/docs/browsershot/v4 · fetched 2026-08-29 · a5013bba2a50
- site_page: https://spatie.be/docs/browsershot/v3 · fetched 2026-08-29 · 632cf90df3f9
- site_page: https://spatie.be/docs/browsershot/v4/support-us · fetched 2026-08-29 · d0fa28ee85c3
- site_page: https://spatie.be/docs/browsershot/v4/requirements · fetched 2026-08-29 · c8b914cbe881
- site_page: https://spatie.be/docs/browsershot/v4/installation-setup · fetched 2026-08-29 · ffeb674793c6
- site_page: https://spatie.be/docs/browsershot/v4/upgrading · fetched 2026-08-29 · 7b3df2d89521
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/browsershot | main | 91 |
For agents
markdown · JSON · MCP: product_card(name="spatie/browsershot")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem