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(2y ago)011MITPHPPHP ^8.0

Since Jun 23Pushed 2y 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 1mo ago

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 27% 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

1055d 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

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8017.0M43](/packages/orchestra-workbench)[christophrumpel/missing-livewire-assertions

This package adds missing livewire test assertions.

149336.0k9](/packages/christophrumpel-missing-livewire-assertions)

PHPackages © 2026

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