SEO Stats
Installs:
15
Open Bugs:
0
Development Status:
Seeking co-maintainer(s)
Maintenance fixes only
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:
<?php
$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:
<?php
$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.
Releases:
7.x-1.x-dev
Release Dates:
10/01/2013