jackal/lighthouse-client

There is no license information available for the latest version (v0.1.2) of this package.

v0.1.2 2020-04-04 08:51 UTC

This package is auto-updated.

Last update: 2024-04-04 18:12:58 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License Scrutinizer Code Quality Build Status

Requirements

To run, this package needs lighthouse installed on your system

Installation

composer require jackal/lighthouse-client

Usage

require_once __DIR__ . '/vendor/autoload.php';

$client = new \Jackal\Lighthouse\LighthouseClient([
    'path' => __DIR__ . '/output.json',
    'interactive' => false,
]);

$result = $client->run('https://www.google.com/');

echo "\n";
echo 'Performance: ' . $result->getPerformance() . "\n";
echo 'Accessibility: ' . $result->getAccessibility() . "\n";
echo 'Best Practices: ' . $result->getBestPractices() . "\n";
echo 'SEO: ' . $result->getSEO() . "\n";
echo 'Progressive app: ' . $result->getProgressiveWebApp() . "\n";