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.
You can install the package via composer:
composer require spatie/lighthouse-php
This package relies on the lighthouse and chrome-launcher js package being available on your system. In most cases you can accomplish this by issues these commands in your project.
npm install lighthouse
npm install chrome-launcher
Chromium should also be available on the server. On modern versions of Ubuntu, you can do that with this command:
sudo apt install chromium-browser
How can I help you explore Laravel packages today?