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
Requires
- php: >=5.6.0
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: 5.*
This package is not auto-updated.
Last update: 2020-08-26 09:59:06 UTC
README
Gain webpage performance insights with Google PageSpeed Insights.
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).