Google Keywords Rank API in PHP. It's a basic PHP class to get a the rank of your website for a keyword.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example.php
GoogleKeywordsRank.php
README.md

README.md

#Google Keywords Rank API

Basic PHP class to get a the rank of your website for a keyword

#Usage (Example.php)

require_once('GoogleKeywordsRank.php');
$gRank = new GoogleKeywordsRank('http://www.ycerdan.fr');
$gRank->setMaxPages(5);

$keywords = array();
$keywords[] = "typo3";

$keywordsPositions = $gRank->getKeywordsArrayRank($keywords);

foreach ($keywordsPositions as $keywords) {
	echo 'For the keyword "' . $keywords[0] . '": ';
	if ($keywords[1] == 0) {
		echo 'you are not in the ' . ($gRank->getMaxPages() * 10) . ' first results';
	} else {
		echo 'you are ranked ' . $keywords[1];
	}
}