Skip to content

Instantly share code, notes, and snippets.

@minthemiddle
Created April 14, 2015 06:09
Show Gist options
  • Select an option

  • Save minthemiddle/9997999071fb836a9024 to your computer and use it in GitHub Desktop.

Select an option

Save minthemiddle/9997999071fb836a9024 to your computer and use it in GitHub Desktop.
<?php
require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
$urls = array('http://www.google.com','http://www.kicker.de','http://www.spiegel.de', 'http://www.karriere-papier-verpackung.de');
$urls2 = ["Transfermarkt" => "http://www.transfermarkt.de", "Kicker" => "http://www.kicker.de"];
foreach($urls2 as $title => $url){
echo "Pagerank " . $title . ": " . \SEOstats\Services\Google::getPageRank($url) . "\n";
echo "Sistrix " . $title . ": " . \SEOstats\Services\Sistrix::getVisibilityIndex($url) . "\n";
// echo "Pagespeed " . $title . ": " . \SEOstats\Services\Google::getPagespeedScore($url) . "\n";
}
//foreach($urls as $url){
// echo "Pagerank " . $url . ": " . \SEOstats\Services\Google::getPageRank($url) . "\n ";
//}
@minthemiddle
Copy link
Author

When installed via composer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment