chrisgeary92/pagespeed

This package is abandoned and no longer maintained. The author suggests using the crgeary/pagespeed package instead.

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: 2022-02-01 13:04:41 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).