youlead-bow/pagespeed

A PHP library to interact with the PageSpeed Insights API

v1.1 2023-10-02 07:34 UTC

This package is auto-updated.

Last update: 2024-05-19 10:08:44 UTC


README

A PHP module to interact with the PageSpeed Insights API on Symfony project.

Installation

The best way to install the library is by using Composer. Add the following to composer.json in the root of your project:

{
    "require": {
        "youlead-bow/pagespeed": "~1.0"
    }
}

Then, on the command line:

curl -s http://getcomposer.org/installer | php
php composer.phar install

Use the generated vendor/.composer/autoload.php file to autoload the library classes.

Basic usage

<?php

$pageSpeed = new PageSpeed\Service();
$pageSpeed->getResults('http://www.example.com');