paulgibbs / pagespeed

Gain webpage performance insights with Google PageSpeed Insights.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PageSpeed Insights

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).

About

Gain webpage performance insights with Google PageSpeed Insights.

License:MIT License


Languages

Language:PHP 100.0%