2017 © Pedro Peláez
 

library pagespeed

A PHP library to interact with the PageSpeed Insights API

image

sgrodzicki/pagespeed

A PHP library to interact with the PageSpeed Insights API

  • Sunday, October 22, 2017
  • by sgrodzicki
  • Repository
  • 6 Watchers
  • 41 Stars
  • 56,379 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 8 Forks
  • 1 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

PageSpeed Insights API

A PHP module to interact with the PageSpeed Insights API., (*1)

Installation

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

``` javascript { "require": { "sgrodzicki/pagespeed": "~2.0" } }, (*3)


Then, on the command line: ``` bash curl -s http://getcomposer.org/installer | php php composer.phar install

Use the generated vendor/.composer/autoload.php file to autoload the library classes., (*4)

Basic usage

<?php

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

Tests

Build Status, (*5)

The client is tested with phpunit; you can run the tests, from the repository's root, by doing:, (*6)

bash phpunit, (*7)

Some tests may fail, due to requiring an internet connection (to test against a real API response). Make sure that you are connected to the internet before running the full test suite., (*8)

The Versions

22/10 2017

dev-master

9999999-dev https://github.com/sgrodzicki/pagespeed

A PHP library to interact with the PageSpeed Insights API

  Sources   Download

MIT

The Requires

 

api google pagespeed insights

22/10 2017

2.1.0

2.1.0.0 https://github.com/sgrodzicki/pagespeed

A PHP library to interact with the PageSpeed Insights API

  Sources   Download

MIT

The Requires

 

api google pagespeed insights

09/02 2015

2.0.0

2.0.0.0 https://github.com/sgrodzicki/pagespeed

A PHP library to interact with the PageSpeed Insights API

  Sources   Download

MIT

The Requires

 

api google pagespeed insights

21/06 2013

1.0.3

1.0.3.0 https://github.com/sgrodzicki/pagespeed

A PHP library to interact with the PageSpeed Insights API

  Sources   Download

MIT

The Requires

 

api google pagespeed insights

06/05 2013

1.0.2

1.0.2.0 https://github.com/sgrodzicki/pagespeed

A PHP library to interact with the PageSpeed Insights API

  Sources   Download

MIT

The Requires

 

api google pagespeed insights

21/11 2012

1.0.1

1.0.1.0 https://github.com/sgrodzicki/pagespeed

A PHP library to interact with the PageSpeed Insights API

  Sources   Download

The Requires

 

api google pagespeed insights

25/07 2012

1.0.0

1.0.0.0 https://github.com/sgrodzicki/PageSpeed

A PHP library to interact with the PageSpeed Insights API

  Sources   Download

The Requires

 

api google pagespeed insights