-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from tholu/semrush
Fixed SEMRush to SemRush calls in Readme
- Loading branch information
Showing
3 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Stephan Schmitz <[email protected]> | ||
* @copyright Copyright (c) 2010 - present Stephan Schmitz | ||
* @license http://eyecatchup.mit-license.org/ MIT License | ||
* @updated 2013/12/17 | ||
* @updated 2014/07/26 | ||
*/ | ||
|
||
// NOTE: The given path to the autoload.php assumes that you installed SEOstats via composer | ||
|
@@ -24,10 +24,10 @@ | |
#require_once realpath(__DIR__ . '/SEOstats/bootstrap.php'); | ||
require_once realpath(__DIR__ . '/vendor/autoload.php'); | ||
|
||
use \SEOstats\Services\SEMRush as SEMrush; | ||
use \SEOstats\Services\SemRush; | ||
|
||
try { | ||
$url = 'http://www.nahklick.de/'; | ||
$url = 'http://www.google.de/'; | ||
|
||
// Create a new SEOstats instance. | ||
$seostats = new \SEOstats\SEOstats; | ||
|
@@ -38,33 +38,33 @@ | |
/** | ||
* Print HTML code for the 'search engine traffic'-graph. | ||
*/ | ||
echo SEMrush::getDomainGraph(1); | ||
echo SemRush::getDomainGraph(1); | ||
|
||
/** | ||
* Print HTML code for the 'search engine traffic price'-graph. | ||
*/ | ||
echo SEMrush::getDomainGraph(2); | ||
echo SemRush::getDomainGraph(2); | ||
|
||
/** | ||
* Print HTML code for the 'number of adwords ads'-graph, | ||
* using explicitly SEMRush's data for google.de (german index). | ||
*/ | ||
echo SEMrush::getDomainGraph(3, false, 'de'); | ||
echo SemRush::getDomainGraph(3, false, 'de'); | ||
|
||
/** | ||
* Print HTML code for the 'adwords traffic'-graph, using | ||
* explicitly SEMRush's data for google.de (german index) | ||
* and specific graph dimensions of 320*240 px. | ||
*/ | ||
echo SEMrush::getDomainGraph(4, false, 'de', 320, 240); | ||
echo SemRush::getDomainGraph(4, false, 'de', 320, 240); | ||
|
||
/** | ||
* Print HTML code for the 'adwords traffic price'-graph, | ||
* using explicitly SEMRush's data for google.de (german index), | ||
* specific graph dimensions of 320*240 px and specific | ||
* graph colors (black lines and red dots for data points). | ||
*/ | ||
echo SEMrush::getDomainGraph(5, false, 'de', 320, 240, '000000', 'ff0000'); | ||
echo SemRush::getDomainGraph(5, false, 'de', 320, 240, '000000', 'ff0000'); | ||
} | ||
} | ||
catch (\Exception $e) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Stephan Schmitz <[email protected]> | ||
* @copyright Copyright (c) 2010 - present Stephan Schmitz | ||
* @license http://eyecatchup.mit-license.org/ MIT License | ||
* @updated 2013/12/17 | ||
* @updated 2014/07/26 | ||
*/ | ||
|
||
// NOTE: The given path to the autoload.php assumes that you installed SEOstats via composer | ||
|
@@ -24,10 +24,10 @@ | |
#require_once realpath(__DIR__ . '/SEOstats/bootstrap.php'); | ||
require_once realpath(__DIR__ . '/vendor/autoload.php'); | ||
|
||
use \SEOstats\Services\SEMRush as SEMrush; | ||
use \SEOstats\Services\SemRush; | ||
|
||
try { | ||
$url = 'http://www.nahklick.de/'; | ||
$url = 'http://www.google.de/'; | ||
|
||
// Create a new SEOstats instance. | ||
$seostats = new \SEOstats\SEOstats; | ||
|
@@ -38,18 +38,18 @@ | |
/** | ||
* Get the current SEMrush DomainRank metrics for the given URL. | ||
*/ | ||
print_r(SEMrush::getDomainRank()); | ||
print_r(SemRush::getDomainRank()); | ||
|
||
/** | ||
* Get historical SEMrush DomainRank metrics for the given URL. | ||
*/ | ||
//print_r(SEMrush::getDomainRankHistory()); | ||
//print_r(SemRush::getDomainRankHistory()); | ||
|
||
/** | ||
* Get competing domains for the given URL | ||
* and their basic SEMrush DomainRank metrics. | ||
*/ | ||
//print_r(SEMrush::getCompetitors()); | ||
//print_r(SemRush::getCompetitors()); | ||
|
||
/** | ||
* Get organic search engine traffic data for the given URL. | ||
|
@@ -60,13 +60,13 @@ | |
* Get organic search engine traffic metrics for the given URL, | ||
* using explicitly SEMrush's data for google.de (german index). | ||
*/ | ||
//print_r(SEMrush::getOrganicKeywords(false, 'de')); | ||
//print_r(SemRush::getOrganicKeywords(false, 'de')); | ||
|
||
/** | ||
* Get an array containing explainations for the | ||
* result keys of the DomainRank metric methods. | ||
*/ | ||
//print_r(SEMrush::getParams()); | ||
//print_r(SemRush::getParams()); | ||
} | ||
} | ||
catch (\Exception $e) { | ||
|