A PHP module to interact with the PageSpeed Insights API on Symfony project.
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.
<?php
$pageSpeed = new PageSpeed\Service();
$pageSpeed->getResults('http://www.example.com');