PHPackages                             adityadees/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. adityadees/laravel-lighthouse

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

adityadees/laravel-lighthouse
=============================

Package wrapper for laravel framework which can make it easier for you to run Google Lighthouse to audit websites.

v1.0.0(3y ago)59.4kMITPHPPHP ^8

Since Apr 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/adityadees/laravel-lighthouse)[ Packagist](https://packagist.org/packages/adityadees/laravel-lighthouse)[ RSS](/packages/adityadees-laravel-lighthouse/feed)WikiDiscussions main Synced 1mo ago

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

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

[](#laravel-lighthouse)

A Google Lighthouse wrapper for laravel framework which can make it easier for you to run Google Lighthouse to audit websites. The audit results that have been completed will be saved automatically in your server directory.

run `composer require adityadees/laravel-lighthouse`then `php artisan vendor:publish --tag=laravel-lighthouse`

Before use this package you need define variable on `config/laravel-lighthouse.php` as global config

To use it you can run

```
# $url = optional, you can using global config or override it to this variable
# $device = optional, if blank will scan both, mobile and desktop mode
$lighouse = (new LaravelLighthouse())->run($url,$device);

// using default config option
$lighouse = (new LaravelLighthouse())->run();

// run both mobile and desktop
$lighouse = (new LaravelLighthouse())->run('https://adityadees.com');

// run only mobile
$lighouse = (new LaravelLighthouse())->run('https://adityadees.com', 'mobile');

// run only desktop
$lighouse = (new LaravelLighthouse())->run('https://adityadees.com', 'desktop');

// run only mobile with global url defined on config
$lighouse = (new LaravelLighthouse())->run('', 'mobile');

// run only desktop with global url defined on config
$lighouse = (new LaravelLighthouse())->run('', 'desktop');
```

or you can use your own custom configuration like this

```
# $url = optional, you can using global config or override it to this variable
# $flag = optional, you can use the config or define it on here
# $device = optional, if blank will scan both, mobile and desktop mode
$lighouse = (new LaravelLighthouse())->selfConfiguration($url,$flag,$device);

// using self configuration with config as default
$lighouse = (new LaravelLighthouse())->selfConfiguration('https://adityadees.com');

// run self configuration with override url, flag and both device
$lighouse = (new LaravelLighthouse())->selfConfiguration('https://adityadees.com', '--chrome-flags="--headless --no-sandbox --disable-gpu" --output html --output json --output-path ' . base_path() . '/public/laravel-lighthouse/mobile/result.html');

// run self configuration with override url, flag and device to mobile mode
$lighouse = (new LaravelLighthouse())->selfConfiguration('https://adityadees.com', '--chrome-flags="--headless --no-sandbox --disable-gpu" --output html --output json --output-path ' . base_path() . '/public/laravel-lighthouse/mobile/result.html', 'mobile');

// run self configuration with override url, flag and device to dekstop mode
$lighouse = (new LaravelLighthouse())->selfConfiguration('https://adityadees.com', '--chrome-flags="--headless --no-sandbox --disable-gpu" --preset=desktop --output html --output json --output-path ' . base_path() . '/public/laravel-lighthouse/desktop/result.html', 'desktop');
```

for more information about the flag you can visit

if you following the configuration example the results should be like this

- Inside folder `public` you can see the results `.html` and `.json`

[![image](https://user-images.githubusercontent.com/37553901/233770747-1de6da10-a59b-4ecc-bffd-7fff4af68a5a.png)](https://user-images.githubusercontent.com/37553901/233770747-1de6da10-a59b-4ecc-bffd-7fff4af68a5a.png)

if you open the `.html` you can see the results like this

Desktop

[![image](https://user-images.githubusercontent.com/37553901/233770848-8e45ad77-5b37-4363-96bb-42cec52cdb8a.png)](https://user-images.githubusercontent.com/37553901/233770848-8e45ad77-5b37-4363-96bb-42cec52cdb8a.png)

Mobile [![image](https://user-images.githubusercontent.com/37553901/233770874-5a7d8740-e09a-43d6-8a4f-532023f0c603.png)](https://user-images.githubusercontent.com/37553901/233770874-5a7d8740-e09a-43d6-8a4f-532023f0c603.png)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1116d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79894108e90782a6780370e94c83d9e66dd962b35c7f65cc10a5e54b98e8080f?d=identicon)[adityadees](/maintainers/adityadees)

---

Top Contributors

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

---

Tags

google-lighthouselaravellighthouselighthouse-auditsphp

### Embed Badge

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

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

###  Alternatives

[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)

PHPackages © 2026

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