// you need to follow this steps: // // 1. Comment-in line 24 (remove hash char "#") and comment-out line 25 (prepend hash char "#") // 2. Copy this example file (and the others) from ./example/example.php to ./example.php // // For further reference see: https://github.com/eyecatchup/SEOstats/issues/49 // Bootstrap the library / register autoloader #require_once realpath(__DIR__ . '/SEOstats/bootstrap.php'); require_once realpath(__DIR__ . '/vendor/autoload.php'); use SEOstats\Services\Google; try { /** * Get an array containing URL and title for the first * 100 results for a Google web search for 'keyword'. */ $serps = Google::getSerps('keyword'); print_r($serps); /** * Get an array containing URL and title for the first * 200 results for a Google web search for 'keyword'. */ //$serps = Google::getSerps('keyword', 200); //print_r($serps); /** * Get an array containing URL, title and position in Serps * for each occurrence of 'http://www.domain.tld' within the * first 1000 results for a Google web search for 'keyword'. */ //$serps = Google::getSerps('keyword', 1000, 'http://www.domain.tld'); //print_r($serps); } catch (\Exception $e) {