PHPackages                             maximeb97/trends-php - 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. maximeb97/trends-php

ActiveLibrary[API Development](/categories/api)

maximeb97/trends-php
====================

Google Trends API for PHP

1.0.0(6mo ago)0462[1 issues](https://github.com/maximeb97/trends-php/issues)MITPHPPHP &gt;=7.4

Since Oct 30Pushed 6mo agoCompare

[ Source](https://github.com/maximeb97/trends-php)[ Packagist](https://packagist.org/packages/maximeb97/trends-php)[ RSS](/packages/maximeb97-trends-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Google Trends API for PHP
=========================

[](#google-trends-api-for-php)

A PHP library for interacting with the Google Trends API. This package provides a simple and type-safe way to access Google Trends data programmatically.

This is a PHP port of the TypeScript library [@shaivpidadi/trends-js](https://github.com/Shaivpidadi/trends-js), maintaining identical functionality and behavior.

Installation
------------

[](#installation)

```
composer require maximeb97/trends-php
```

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- cURL extension enabled

Features
--------

[](#features)

- Get daily trending topics
- Get real-time trending topics
- Get autocomplete suggestions
- Explore trends data
- Get interest by region data
- Get related topics for any keyword
- Get related queries for any keyword
- Get combined related data (topics + queries)
- Full error handling with custom exceptions

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
