PHPackages                             phyozawtun/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. phyozawtun/laravel-google-lighthouse

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

phyozawtun/laravel-google-lighthouse
====================================

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

1.0.2(3y ago)011MITPHPPHP ^8.0

Since Jun 23Pushed 3y agoCompare

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

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

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 phyozawtun/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

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~0 days

Total

2

Last Release

1105d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92432637178ada5ac56f4cbd6287df649ec2be243d46a4f69e900d65b28bd291?d=identicon)[phyozawtun](/maintainers/phyozawtun)

---

Top Contributors

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

---

Tags

laravelgooglelighthouse

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/phyozawtun-laravel-google-lighthouse/health.svg)](https://phpackages.com/packages/phyozawtun-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.4M300](/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.5M85](/packages/unisharp-laravel-filemanager)[spatie/laravel-health

Monitor the health of a Laravel application

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

PHPackages © 2026

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