philcook/gtmetrix
最新稳定版本:v2.0.1
Composer 安装命令:
composer require philcook/gtmetrix
包简介
GTMetrix API client for PHP
README 文档
README
Installing
This client library can be installed using composer:
composer require philcook/gtmetrix
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
From version 2.0 references to Entrecore have been replace with LightningStudio due to Entrecore no longer existing and therefore avoiding confusion for users.
统计信息
- 总下载量: 65.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 38
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-28