PHPackages                             suitmedia/frontend-lighthouse-audit - 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. suitmedia/frontend-lighthouse-audit

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

suitmedia/frontend-lighthouse-audit
===================================

A PHP package to automate the Lighthouse Auditing for frontend development.

0.2.0(7y ago)05.9kMITPHPPHP ^7.1.3

Since Feb 16Pushed 7y ago3 watchersCompare

[ Source](https://github.com/suitmedia/frontend-lighthouse-audit)[ Packagist](https://packagist.org/packages/suitmedia/frontend-lighthouse-audit)[ Docs](https://github.com/suitmedia/frontend-lighthouse-audit)[ RSS](/packages/suitmedia-frontend-lighthouse-audit/feed)WikiDiscussions master Synced yesterday

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

[![Build Status](https://camo.githubusercontent.com/aeb8514c7504187878724c15bac9789229428b7e5a096584ba01d541d6365b8d/68747470733a2f2f7472617669732d63692e6f72672f737569746d656469612f66726f6e74656e642d6c69676874686f7573652d61756469742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/suitmedia/frontend-lighthouse-audit)[![codecov](https://camo.githubusercontent.com/3260ae5225159528108528c09573704a37ac6a9272277c57e10475dea6844190/68747470733a2f2f636f6465636f762e696f2f67682f737569746d656469612f66726f6e74656e642d6c69676874686f7573652d61756469742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/suitmedia/frontend-lighthouse-audit)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/432516cc4dde29bf1079483123f8f97c4f91382f4fe5abbdd243186d3320cb29/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f737569746d656469612f66726f6e74656e642d6c69676874686f7573652d61756469742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/suitmedia/frontend-lighthouse-audit/?branch=master)[![StyleCI](https://camo.githubusercontent.com/e75a698763c9846ec43ae7f2b2b340a93bebcce03cc2989a18f0a3399b6b9a5a/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3137303831313431352f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/170811415)[![Total Downloads](https://camo.githubusercontent.com/3fe5491491e8119a5201daa5789a3b39a449ee3aed3d81030713706e99a6711b/68747470733a2f2f706f7365722e707567782e6f72672f737569746d656469612f66726f6e74656e642d6c69676874686f7573652d61756469742f642f746f74616c2e737667)](https://packagist.org/packages/suitmedia/frontend-lighthouse-audit)[![Latest Stable Version](https://camo.githubusercontent.com/f57916088699981533b99a994a5e8e20f956d44abea56554bf914f1eb55746a2/68747470733a2f2f706f7365722e707567782e6f72672f737569746d656469612f66726f6e74656e642d6c69676874686f7573652d61756469742f762f737461626c652e737667)](https://packagist.org/packages/suitmedia/frontend-lighthouse-audit)[![License: MIT](https://camo.githubusercontent.com/f45d904953153ca304a2328243d2733e095eee13a631a1f390709885d41dd692/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2f6672616d65776f726b2f6c6963656e73652e737667)](https://opensource.org/licenses/MIT)

Frontend Lighthouse Audit
=========================

[](#frontend-lighthouse-audit)

> A simple tool to audit all of the frontend HTML templates using `lighthouse-ci` CLI command.

 [![Lighthouse Audit Example](https://raw.githubusercontent.com/suitmedia/frontend-lighthouse-audit/master/docs/example.png)](https://raw.githubusercontent.com/suitmedia/frontend-lighthouse-audit/master/docs/example.png)

---

Synopsis
--------

[](#synopsis)

This package will help you to measure and audit the quality of your frontend HTML templates. It will start a web-server automatically on the given document root path, scan all HTML files and analyse them one by one. You can also run this tool in your CI pipeline.

Table of contents
-----------------

[](#table-of-contents)

- [Compatibility](#compatibility)
- [Requirements](#requirements)
- [Setup](#setup)
- [CLI Usage](#cli-usage)
- [License](#license)

Compatibility
-------------

[](#compatibility)

This package only supports PHP version `7.1` or higher.

Requirements
------------

[](#requirements)

This package is dependent to the [lighthouse-ci](https://github.com/andreasonny83/lighthouse-ci) package and `Chrome` /`Chromium` web browser, so you need to install them first.

You can install `lighthouse-ci` easily, using this command:

```
$ npm install -g lighthouse-ci
```

Setup
-----

[](#setup)

Install the package globally using Composer :

```
$ composer global require suitmedia/frontend-lighthouse-audit
```

CLI Usage
---------

[](#cli-usage)

```
$ lighthouse-audit -h

Usage:
  lighthouse-audit [options] [--]

Arguments:
  path                                   Specify the path of a directory to analyse.

Options:
  -S, --server[=SERVER]                  Define the address and port that PHP web-server should serve. : [default: "localhost:8000"]
      --mode[=MODE]                      Define the mode to run Lighthouse audit. Option: mobile,desktop [default: "mobile"]
      --performance[=PERFORMANCE]        Define the minimal performance score for audit to pass [default: "80"]
      --best-practices[=BEST-PRACTICES]  Define the minimal best-practices score for audit to pass [default: "80"]
      --accessibility[=ACCESSIBILITY]    Define the minimal accessibility score for audit to pass [default: "80"]
      --seo[=SEO]                        Define the minimal seo score for audit to pass [default: "80"]
      --pwa[=PWA]                        Define the minimal pwa score for audit to pass [default: "0"]
      --except[=EXCEPT]                  Provide a list of filenames that you wish to exclude, separated by commas.

      --chrome-flags[=CHROME-FLAGS]      Custom flags to pass to Chrome (space-delimited). For a full list of flags,
                                         see http://peter.sh/experiments/chromium-command-line-switches/.

  -h, --help                             Display this help message
  -V, --version                          Display this application version
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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

Every ~0 days

Total

2

Last Release

2642d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5222595?v=4)[Richan Fongdasen](/maintainers/richan-fongdasen)[@richan-fongdasen](https://github.com/richan-fongdasen)

---

Top Contributors

[![richan-fongdasen](https://avatars.githubusercontent.com/u/5222595?v=4)](https://github.com/richan-fongdasen "richan-fongdasen (21 commits)")

---

Tags

frontendlighthouse

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/suitmedia-frontend-lighthouse-audit/health.svg)

```
[![Health](https://phpackages.com/badges/suitmedia-frontend-lighthouse-audit/health.svg)](https://phpackages.com/packages/suitmedia-frontend-lighthouse-audit)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[captainhook/captainhook

PHP git hook manager

1.1k6.8M370](/packages/captainhook-captainhook)[liuggio/fastest

Simple parallel testing execution... with some goodies for functional tests.

4825.6M26](/packages/liuggio-fastest)

PHPackages © 2026

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