youlead-bow/pagespeed

A PHP library to interact with the PageSpeed Insights API

v2.0 2024-06-06 14:38 UTC

This package is auto-updated.

Last update: 2024-11-06 15:35:35 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');