PHPackages                             philcook/gtmetrix - 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. philcook/gtmetrix

ActiveLibrary[API Development](/categories/api)

philcook/gtmetrix
=================

GTMetrix API client for PHP

v2.0.1(5y ago)3868.1k↓82.5%142MITPHPPHP &gt;=7.3CI failing

Since May 27Pushed 5y ago5 watchersCompare

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

READMEChangelog (6)Dependencies (3)Versions (9)Used By (2)

GTMetrix API client for PHP
===========================

[](#gtmetrix-api-client-for-php)

[![Latest Stable Version](https://camo.githubusercontent.com/cbb36c254aac9a9248765e4efb033c0deb59b166bfed7203ccb1bb13657b0356/68747470733a2f2f706f7365722e707567782e6f72672f7068696c636f6f6b2f67746d65747269782f76)](//packagist.org/packages/philcook/gtmetrix)[![Build Status](https://camo.githubusercontent.com/d46491889983429141575a4f399efd3b92a0e6ea3bcf8cbc254c63be034117f1/68747470733a2f2f7472617669732d63692e6f72672f7068696c636f6f6b2f7068702d67746d65747269782e737667)](https://travis-ci.org/philcook/php-gtmetrix)[![Total Downloads](https://camo.githubusercontent.com/4678101c2d66d32a1cbdbd0678dda288e975a301b0e68c491bfdab398125157a/68747470733a2f2f706f7365722e707567782e6f72672f7068696c636f6f6b2f67746d65747269782f646f776e6c6f616473)](//packagist.org/packages/philcook/gtmetrix)[![License](https://camo.githubusercontent.com/301eabfde0ebdf405b77eaaacada2e42b4b598ca88b8ea87f36d4d67176f7a15/68747470733a2f2f706f7365722e707567782e6f72672f7068696c636f6f6b2f67746d65747269782f6c6963656e7365)](//packagist.org/packages/philcook/gtmetrix)

Installing
----------

[](#installing)

This client library can be installed using [composer](https://getcomposer.org/):

```
composer require philcook/gtmetrix

```

Using
-----

[](#using)

```
use LightningStudio\GTMetrixClient\GTMetrixClient;
use LightningStudio\GTMetrixClient\GTMetrixTest;

$client = new GTMetrixClient();
$client->setUsername('your@email.com');
$client->setAPIKey('your-gtmetrix-api-key');

$client->getLocations();
$client->getBrowsers();
$test = $client->startTest('http://www.example.com/');

//Wait for result
while ($test->getState() != GTMetrixTest::STATE_COMPLETED &&
    $test->getState() != GTMetrixTest::STATE_ERROR) {
    $client->getTestStatus($test);
    sleep(5);
}
```

Update information
------------------

[](#update-information)

From version 2.0 references to Entrecore have been replace with LightningStudio due to Entrecore no longer existing and therefore avoiding confusion for users.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~299 days

Recently: every ~251 days

Total

8

Last Release

1964d ago

Major Versions

v1.0.5 → v2.0.02021-02-16

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.3

v1.0.5PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/f6f673a4ab4652b26ca5b053231236b9e5e366a9098ab367d761dc83f69d3d75?d=identicon)[philcook](/maintainers/philcook)

---

Top Contributors

[![philcook](https://avatars.githubusercontent.com/u/2623518?v=4)](https://github.com/philcook "philcook (14 commits)")[![epifrin](https://avatars.githubusercontent.com/u/1763649?v=4)](https://github.com/epifrin "epifrin (1 commits)")[![stevegrunwell](https://avatars.githubusercontent.com/u/233836?v=4)](https://github.com/stevegrunwell "stevegrunwell (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/philcook-gtmetrix/health.svg)

```
[![Health](https://phpackages.com/badges/philcook-gtmetrix/health.svg)](https://phpackages.com/packages/philcook-gtmetrix)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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