Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

#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];
	}
}

About

Google Keywords Rank API in PHP. It's a basic PHP class to get a the rank of your website for a keyword.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages