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