Skip to content

Commit

Permalink
Upgrade composer to PHP 8.3. Drop support for older PHP versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisc committed Jul 20, 2024
1 parent 517a2a3 commit 472d0c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
"sort-packages": true
},
"require": {
"php": "^7.4|^8.0",
"php": "~8.3.0",
"ext-curl": "*",
"ext-json": "*",
"laminas/laminas-http": "^2.15",
"laminas/laminas-json": "^3.3",
"laminas/laminas-stdlib": "^3.6"
"laminas/laminas-http": "^2.19.0",
"laminas/laminas-json": "^3.6.0",
"laminas/laminas-stdlib": "^3.19.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.4",
Expand Down
18 changes: 9 additions & 9 deletions src/GTrends/GTrends.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@

class GTrends
{
private const GENERAL_ENDPOINT = 'https://trends.google.com/trends/api/explore';
private const INTEREST_OVER_TIME_ENDPOINT = 'https://trends.google.com/trends/api/widgetdata/multiline';
private const RELATED_QUERIES_ENDPOINT = 'https://trends.google.com/trends/api/widgetdata/relatedsearches';
private const SUGGESTIONS_AUTOCOMPLETE_ENDPOINT = 'https://trends.google.com/trends/api/autocomplete';
private const COMPARED_GEO_ENDPOINT = 'https://trends.google.com/trends/api/widgetdata/comparedgeo';
private const CATEGORIES_ENDPOINT = 'https://trends.google.com/trends/api/explore/pickers/category';
private const GEO_ENDPOINT = 'https://trends.google.com/trends/api/explore/pickers/geo';
private const DAILY_SEARCH_TRENDS_ENDPOINT = 'https://trends.google.com/trends/api/dailytrends';
private const REAL_TIME_SEARCH_TRENDS_ENDPOINT = 'https://trends.google.com/trends/api/realtimetrends';
private const string GENERAL_ENDPOINT = 'https://trends.google.com/trends/api/explore';
private const string INTEREST_OVER_TIME_ENDPOINT = 'https://trends.google.com/trends/api/widgetdata/multiline';
private const string RELATED_QUERIES_ENDPOINT = 'https://trends.google.com/trends/api/widgetdata/relatedsearches';
private const string SUGGESTIONS_AUTOCOMPLETE_ENDPOINT = 'https://trends.google.com/trends/api/autocomplete';
private const string COMPARED_GEO_ENDPOINT = 'https://trends.google.com/trends/api/widgetdata/comparedgeo';
private const string CATEGORIES_ENDPOINT = 'https://trends.google.com/trends/api/explore/pickers/category';
private const string GEO_ENDPOINT = 'https://trends.google.com/trends/api/explore/pickers/geo';
private const string DAILY_SEARCH_TRENDS_ENDPOINT = 'https://trends.google.com/trends/api/dailytrends';
private const string REAL_TIME_SEARCH_TRENDS_ENDPOINT = 'https://trends.google.com/trends/api/realtimetrends';

private array $options = [
'hl' => 'en-US',
Expand Down

0 comments on commit 472d0c0

Please sign in to comment.