spatie/lighthouse-php
Run Google Lighthouse audits from PHP. Test any URL and retrieve category scores (performance, accessibility, SEO, etc.) and individual audit details. Configure headers, user agent, categories, CPU throttling, and max load wait, then run and parse results.
Lighthouse can generate a nicely formatted HTML report with the scores and results of all audits.
use Spatie\Lighthouse\Lighthouse;
Lighthouse::url('https://example.com')
->run()
->saveHtml($pathToFile);
This is how that report looks like in the browser.

To get the HTML, without save it to a file, simply call html().
use Spatie\Lighthouse\Lighthouse;
$html = Lighthouse::url('https://example.com')
->run()
->html();
How can I help you explore Laravel packages today?