GithubHelp home page GithubHelp logo

rakesh-webdeveloper / php-google-pagespeed-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ssx/php-google-pagespeed-api

0.0 2.0 0.0 23 KB

PHP Google PageSpeed API Micro Client.

License: Other

PHP 100.00%

php-google-pagespeed-api's Introduction

Circle CI StyleCI

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.

Feedback

If you have any feedback, comments or suggestions, please feel free to open an issue within the repository on Github.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.