PHPackages                             ssx/php-google-pagespeed-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ssx/php-google-pagespeed-api

ActiveLibrary[API Development](/categories/api)

ssx/php-google-pagespeed-api
============================

PHP Google PageSpeed API Micro Client.

1.0.2(8y ago)3832[2 issues](https://github.com/ssx/php-google-pagespeed-api/issues)Apache-2.0PHPCI passing

Since Jun 13Pushed 3w ago1 watchersCompare

[ Source](https://github.com/ssx/php-google-pagespeed-api)[ Packagist](https://packagist.org/packages/ssx/php-google-pagespeed-api)[ RSS](/packages/ssx-php-google-pagespeed-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

[![Circle CI](https://camo.githubusercontent.com/f421538694c1685129d7a4e52263e50e506e0bfa1d90a22c1de08dfe39ef3c56/68747470733a2f2f636972636c6563692e636f6d2f67682f7373782f7068702d676f6f676c652d7061676573706565642d6170692e706e673f7374796c653d736869656c64 " ")](https://camo.githubusercontent.com/f421538694c1685129d7a4e52263e50e506e0bfa1d90a22c1de08dfe39ef3c56/68747470733a2f2f636972636c6563692e636f6d2f67682f7373782f7068702d676f6f676c652d7061676573706565642d6170692e706e673f7374796c653d736869656c64) [![StyleCI](https://camo.githubusercontent.com/e9e72eb99c141254b777faa702af2f5e66a940e92b42bfbbf0d3612e0f95b508/68747470733a2f2f7374796c6563692e696f2f7265706f732f39343234333632382f736869656c64 " ")](https://camo.githubusercontent.com/e9e72eb99c141254b777faa702af2f5e66a940e92b42bfbbf0d3612e0f95b508/68747470733a2f2f7374796c6563692e696f2f7265706f732f39343234333632382f736869656c64)

PHP Google PageSpeed API
========================

[](#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

[](#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

[](#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

[](#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).

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance48

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3258d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/254889?v=4)[Scott](/maintainers/ssx)[@ssx](https://github.com/ssx)

---

Top Contributors

[![ssx](https://avatars.githubusercontent.com/u/254889?v=4)](https://github.com/ssx "ssx (13 commits)")

---

Tags

apigoogleinsightspagespeedphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ssx-php-google-pagespeed-api/health.svg)

```
[![Health](https://phpackages.com/badges/ssx-php-google-pagespeed-api/health.svg)](https://phpackages.com/packages/ssx-php-google-pagespeed-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
