https://github.com/ssx/php-google-pagespeed-api
PHP Google PageSpeed API Micro Client.
https://github.com/ssx/php-google-pagespeed-api
api google insights pagespeed php
Last synced: about 1 year ago
JSON representation
PHP Google PageSpeed API Micro Client.
- Host: GitHub
- URL: https://github.com/ssx/php-google-pagespeed-api
- Owner: ssx
- License: other
- Created: 2017-06-13T18:16:28.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-09-25T19:29:30.000Z (over 6 years ago)
- Last Synced: 2025-03-27T19:41:41.817Z (about 1 year ago)
- Topics: api, google, insights, pagespeed, php
- Language: PHP
- Size: 21.5 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
 
# PHP Google PageSpeed API
This is a tiny micro client for making calls to the Google Pagespeed API which
returns some interesting data about the given URL.
To get started, create an instance like so:
$insights = new SSX\API\Google\PageSpeed\ApiClient("https://dor.ky");
This will give you an instance of the class. The two implemented functions so far
are `$insights->getScreenshot()` to return a JPG image of the site and
`$insights->getRaw()` which will return the raw data back from the API call.
### Use an API Key
I'd recommend you setup and use an API key for use in production, you can add it
as the second parameter on construction to use:
$insights = new SSX\API\Google\PageSpeed\ApiClient("https://dor.ky","api-key-goes-here");
### License
This project is licensed under an Apache 2.0 license which you can find within
this repository in the [LICENSE file](https://github.com/ssx/php-google-pagespeed-api/blob/master/LICENSE).
### Feedback
If you have any feedback, comments or suggestions, please feel free to open an
issue within the repository on [Github](https://github.com/ssx/php-google-pagespeed-api).