Pagespeed
A PHP library to interact with the PageSpeed Insights API
Install / Use
/learn @sgrodzicki/PagespeedREADME
PageSpeed Insights API
A PHP module to interact with the PageSpeed Insights API.
Installation
The best way to install the library is by using Composer. Add the following to composer.json in the root of your project:
{
"require": {
"sgrodzicki/pagespeed": "~2.0"
}
}
Then, on the command line:
curl -s http://getcomposer.org/installer | php
php composer.phar install
Use the generated vendor/.composer/autoload.php file to autoload the library classes.
Basic usage
<?php
$pageSpeed = new \PageSpeed\Insights\Service();
$pageSpeed->getResults('http://www.example.com');
Tests
The client is tested with phpunit; you can run the tests, from the repository's root, by doing:
phpunit
Some tests may fail, due to requiring an internet connection (to test against a real API response). Make sure that you are connected to the internet before running the full test suite.
Related Skills
node-connect
354.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

