Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 444 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 444 Bytes

google-trends-extractor

A simple trend extractor from Google Trends in PHP

Usage

Extract trends in array

$gtrend = new GTrendExtractor('http://www.google.com/trends/hottrends/atom/hourly');
$trend = $gtrend->get();
print_r($trend);

Extract trends in json

$gtrend = new GTrendExtractor('http://www.google.com/trends/hottrends/atom/hourly');
$trend = $gtrend->get('json');
echo $trend;