SEO Stats
Categories
Component ID
1468110
Component name
SEO Stats
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
703
Component created
Component changed
Component body
Search-related statistics including Google PageRank for your site or other sites, in your Drupal site.
Wrapper for the SEOstats: SEO data library for PHP.
This is a developer-focused module and has no user interface of its own. Use it simply by calling its functions.
Currently the only function defined is to get the page rank:
$url = "http://example.com";
$pagerank = seostats_google_pagerank($url);
However all of the SEO Stats library's functions can be used in the same manner that this function gets them, see in the module file:
$result = NULL;
seostats_include_library();
try {
$seostats_url = new SEOstats($url);
$pagerank = $seostats_url->Google_Page_Rank();
$result = $pagerank;
}
catch (SEOstatsException $e) {
watchdog('seostats', $e->getMessage(), array(), WATCHDOG_ERROR);
$result = FALSE;
}
return $result;
If using Drush Make then the library will be downloaded for you, otherwise download SEOstats yourself and put it in your libraries folder.
