# spatie/lighthouse-php

> Run Google Lighthouse using PHP

Navigation: [Analytics & SEO](category/analytics-seo.txt) · [Index](../llms.txt)

## Facts

- GitHub: https://github.com/spatie/lighthouse-php
- HTML: https://awesomeopensource.dev/project/spatie-lighthouse-php
- Website: https://spatie.be/docs/lighthouse-php
- License: MIT
- Language: PHP
- stars: 270
- Topics: best-practices, google, lighthouse, performance, php, seo
- Activity score: 3.6/5 (Active)
- Last commit (any branch): 2026-11-06
- Last release: 2.0.1 2025-11-25

## Description

A PHP package for running Google Lighthouse audits against any URL and reading the results as structured data. It returns scores for performance, accessibility, best practices, SEO and PWA, exposes individual audit values such as first contentful paint, and can write the full HTML report to disk. Requests can set a user agent, custom headers, audit categories, CPU throttling and a page-load timeout.

## Maintenance activity

- Recency: 94% (weight 40%) — last commit: 7 days ago
- Commit volume: 47% (weight 25%)
- Releases: 31% (weight 25%) — last release: 352 days ago
- Bug fixes: 70% (weight 10%)
- Commits: 2 / 90d, 14 / 365d

## Screenshots

- [Screenshot of a Lighthouse PHP report showing the performance score and core web vitals](https://awesomeopensource.dev/uploads/502/602a891b6465a209.jpg)

## Similar projects

- [PostHog/posthog](posthog-posthog.md): PostHog provides open-source product analytics, session recording, feature flagging and a/b testing that you can self-host. · Activity score 5.0/5 (Thriving)
- [umami-software/umami](umami-software-umami.md): Umami is a simple, fast, privacy-focused alternative to Google Analytics. · Activity score 5.0/5 (Thriving)
- [matomo-org/matomo](matomo-org-matomo.md): Liberating Web Analytics. Matomo is the leading open alternative to Google Analytics that gives you full control over your data. · Activity score 4.9/5 (Thriving)
- [rybbit-io/rybbit](rybbit-io-rybbit.md): Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive. · Activity score 4.9/5 (Thriving)
- [openreplay/openreplay](openreplay-openreplay.md): tv: OpenReplay is developer-friendly, open-source session replay. · Activity score 4.9/5 (Thriving)
- [harlan-zw/unlighthouse](harlan-zw-unlighthouse.md): Scan an entire site with Google Lighthouse from one command · Activity score 4.7/5 (Thriving)
