Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dsentker/phpinsights",
"name": "nightvis/phpinsights",
"description": "A php wrapper for Googles page speed insights",
"version": "0.2.3",
"version": "0.2.5",
"require": {
"php": "^5.4 || ^7.0",
"netresearch/jsonmapper": "^1.1",
Expand Down
4 changes: 2 additions & 2 deletions src/InsightsCaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class InsightsCaller

const STRATEGY_DESKTOP = 'desktop';

const GI_API_ENDPOINT = 'https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url=%s&strategy=%s&key=%s&locale=%s&screenshot=%s';
const GI_API_ENDPOINT = 'https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=%s&strategy=%s&key=%s&locale=%s&screenshot=%s';

/** @var string */
private $apiKey;
Expand Down Expand Up @@ -145,4 +145,4 @@ protected function createApiEndpointUrl($url, $strategy = 'mobile')
}


}
}