PHPackages                             sgrodzicki/pagespeed - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. sgrodzicki/pagespeed

ActiveLibrary[API Development](/categories/api)

sgrodzicki/pagespeed
====================

A PHP library to interact with the PageSpeed Insights API

2.1.0(8y ago)48130.9k↓10.7%7[1 issues](https://github.com/sgrodzicki/pagespeed/issues)MITPHPPHP &gt;=5.3.3

Since Jul 25Pushed 8y ago5 watchersCompare

[ Source](https://github.com/sgrodzicki/pagespeed)[ Packagist](https://packagist.org/packages/sgrodzicki/pagespeed)[ Docs](https://github.com/sgrodzicki/pagespeed)[ RSS](/packages/sgrodzicki-pagespeed/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (7)Used By (0)

PageSpeed Insights API
======================

[](#pagespeed-insights-api)

A PHP module to interact with the [PageSpeed Insights API](https://developers.google.com/speed/docs/insights/v2/getting-started).

Installation
============

[](#installation)

The best way to install the library is by using [Composer](http://getcomposer.org). Add the following to `composer.json` in the root of your project:

```
{
    "require": {
        "sgrodzicki/pagespeed": "~2.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
===========

[](#basic-usage)

```
