crgeary/pagespeed

This package is abandoned and no longer maintained. No replacement package was suggested.

Gain webpage performance insights with Google PageSpeed Insights.

1.0.0 2018-01-02 16:11 UTC

This package is not auto-updated.

Last update: 2020-08-26 09:59:06 UTC


README

Gain webpage performance insights with Google PageSpeed Insights.

Build Status

Usage

See the PageSpeed API reference for a list of optional parameters.

$pagespeed = new \Crgeary\Pagespeed\Service();

$data = $pagespeed->runPagespeed('https://github.com/crgeary/pagespeed', [
    'key' => 'your-pagespeed-api-key',
    'screenshot' => true
]);

You can then access properties from the response as shown below:

echo $data->responseCode;

Security

If you discover any security issues, please email dev@crgeary.com.

License

The MIT License (MIT).