PHPackages                             logiek/laravel-google-lighthouse - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. logiek/laravel-google-lighthouse

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

logiek/laravel-google-lighthouse
================================

This package provides a wrapper for Google Lighthouse to audit the quality of web pages with Laravel.

1.2.0(2y ago)55303MITPHPPHP ^8.0|^8.1|^8.2

Since Jan 26Pushed 11mo agoCompare

[ Source](https://github.com/logiek/laravel-google-lighthouse)[ Packagist](https://packagist.org/packages/logiek/laravel-google-lighthouse)[ RSS](/packages/logiek-laravel-google-lighthouse/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

⚠️ THIS PACKAGE IS NO LONGER MAINTAINED ⚠️
This repository has been discontinued and is no longer receiving updates or support.

laravel-google-lighthouse
=========================

[](#laravel-google-lighthouse)

[![Latest Stable Version](https://camo.githubusercontent.com/ecdfb1077ac64f46d4506e17522f82683f0316872d68bf605cc2eb59cf25c82c/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6769656b2f6c61726176656c2d676f6f676c652d6c69676874686f7573652f762f737461626c65)](https://packagist.org/packages/logiek/laravel-google-lighthouse) [![Total Downloads](https://camo.githubusercontent.com/93f8211f7398cd50aea4a5e28cd64478ec74ee1cf9dad57e9126aae3b548ed28/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6769656b2f6c61726176656c2d676f6f676c652d6c69676874686f7573652f646f776e6c6f616473)](https://packagist.org/packages/logiek/laravel-google-lighthouse) [![License](https://camo.githubusercontent.com/0ec04e82b6306f3cc5289bcc22a3c5eb054ab5fcf47064c37ab024a3e5515473/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6769656b2f6c61726176656c2d676f6f676c652d6c69676874686f7573652f6c6963656e7365)](https://packagist.org/packages/logiek/laravel-google-lighthouse) [![PHP Version Require](https://camo.githubusercontent.com/07d029dbe506b4ff913fa2ae118aa0f2012948a210913a9a023b0183107c86b2/687474703a2f2f706f7365722e707567782e6f72672f6c6f6769656b2f6c61726176656c2d676f6f676c652d6c69676874686f7573652f726571756972652f706870)](https://packagist.org/packages/logiek/laravel-google-lighthouse)

**This package is based on [octoper/lighthouse-php](https://github.com/octoper/lighthouse-php).**

This package provides a wrapper for Google Lighthouse to audit the quality of web pages with Laravel.

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require logiek/laravel-google-lighthouse
```

The package will automatically register itself. Optionally you can publish the config file with:

```
php artisan vendor:publish --provider="Logiek\GoogleLighthouse\GoogleLighthouseServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

The following example will perform the default Google Lighthouse audit and store the result in the given path.

```
use Logiek\GoogleLighthouse\GoogleLighthouse;

(new GoogleLighthouse())
    ->setOutput('report.html')
    ->audit('http://example.com');
```

### Categories

[](#categories)

Per default the audit will run all the available categories. To run the audit for a specified list of categories you can specify the categories that the audit should run as shown in the example below, any missing category will be skipped.

The available categories are: `performance`, `pwa`, `bestPractices`, `accessibility` and `seo`.

```
use Logiek\GoogleLighthouse\GoogleLighthouse;

(new GoogleLighthouse())
    ->performance()
    ->pwa()
    ->setOutput('report.html')
    ->audit('http://example.com');
```

### Output

[](#output)

The `setOutput` method accepts a second argument that can be used to specify the format (based on the configuration). If the format argument is missing then the file extension will be used to determine the output format. If the file extension does not specify an accepted format, an exception will be thrown.

For the example the following code will create two reports example.report.html and example.report.json.

```
use Logiek\GoogleLighthouse\GoogleLighthouse;

(new GoogleLighthouse())
    ->setOutput('example', ['html', 'json'])
    ->audit('http://example.com');
```

### Options

[](#options)

The `setOption` method can be used to specify certain options to fine tune Google Lighthouse to your liking.

```
use Logiek\GoogleLighthouse\GoogleLighthouse;

(new GoogleLighthouse())
    ->setOption('--throttling.cpuSlowdownMultiplier', 4)
    ->setOutput('report.html')
    ->audit('http://example.com');
```

Changelog
---------

[](#changelog)

Please see the [CHANGELOG](CHANGELOG.md) for more information about recent changes.

License
-------

[](#license)

This project is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~281 days

Total

3

Last Release

1056d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.2.0PHP ^8.0|^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/b80eca3a0f08b0d8aa01d97c55cae912a9a0b50f93400e62c8717aca1a45d6c8?d=identicon)[logiek](/maintainers/logiek)

---

Top Contributors

[![jordinbrouwer](https://avatars.githubusercontent.com/u/18177037?v=4)](https://github.com/jordinbrouwer "jordinbrouwer (4 commits)")

---

Tags

laravelgooglelighthouse

### Embed Badge

![Health badge](/badges/logiek-laravel-google-lighthouse/health.svg)

```
[![Health](https://phpackages.com/badges/logiek-laravel-google-lighthouse/health.svg)](https://phpackages.com/packages/logiek-laravel-google-lighthouse)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M295](/packages/laravel-horizon)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M129](/packages/laravel-pulse)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M83](/packages/unisharp-laravel-filemanager)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M159](/packages/spatie-laravel-health)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
