SEO Ranking Checker PHP

PHP Code for SEO Ranking Checker

SEO Checker PHP script working code for website latest and updated code easily can be modified at any website page.


if (isset($_POST["domain"]) 
&& isset($_POST["query"])){


$GOOGLE_API_KEY = 'Insert Google API Key';
$GOOGLE_CSE_CX = 'Insert Custom Search ID';


$query = urlencode($_POST["query"]);
$domain = $_POST["domain"];

//gl https://developers.google.com/
custom-search/docs/
xml_results_appendices#countryCodes
//hl https://developers.google.com/custom-search/
docs/xml_results_appendices#interfaceLanguages
//pages - how many pages should the search extend


$pages = isset($_POST["pages"])?
$_POST["pages"]:1;
$gl = isset($_POST["gl"])?
$_POST["gl"]:"us";
$hl = isset($_POST["hl"])?
$_POST["hl"]:"en";



$found = false;
echo "<ul>";
for ($page = 1;$page <= $pages &&
 $found == false;$page++){
$apiurl = sprintf('https://
www.googleapis.com/customsearch/
v1?q=%s&c=%s&key=%s&hl=%s&gl=
%s&start=%d',$query,$GOOGLE_CSE_
,$GOOGLE_API_KEY,$hl,$gl,($page-1)*10+1);
	// echo $apiurl;
$json = file_get_contents($apiurl);
// $json = file_get_contents
('http://localhost/
wordpress/serp-checker/test.json');
$obj = json_decode($json);

		
foreach($obj->items as $idx=>$item){
if(strpos($item->link, $domain)){
	$found = true;
	echo "<li>";
	} else{
echo "<li class='other'>";
			}
echo "<span class='rank'>".
($idx + ($page-1)*10 +1)."</span>";
echo "<span class='title'>"
.$item->htmlTitle."</span>";
echo "<span class='link'>".$item->link."
<small>&#x25BC;</small></span>";
echo "<span class='snippet'>".
$item->htmlSnippet."</span>";
echo "</li>";
			
		}
	}
if ($found !== true){
		echo "<li>";
echo "<span class='title'>".
$domain." not found</span>";
		echo "</li>";
	}
	echo "</ul>";

}

Why SEO Ranking Checker needed

This is the justification for why we have referenced the best SEO checker PHP scripts that are furnished with numerous site streamlining elements and offices.

The contents recorded here are fit for giving a point-by-point SEO reports,

different advancement measurements, data identified with

area authority, page and site content subtleties.
assuming you are wanting to get your site enhanced flawlessly for higher

positions, then, at that point, you should look at the PHP scripts clarified beneath.

Website SEO Checker Tool – PHP Script

Search engine optimization investigation instrument is one of the most incredible
PHP script through which you can audit site subtleties.

It gives explained SEO reports and insights which are gainful for web examination in PDF record design.

With this SEO script, you can undoubtedly enhance URL data and ascertain
the space age from the date of area enrollment.


That is not all, the content likewise gathers social offer counts, and checks both

inward just as outside connections and assist you with upgrading page load time.

Website Rank effects on visitors

PHP Script Beginning to end is one more PHP script that comes stacked with 50+
SEO devices that assist you with following different SEO issues on a site.

With this content, you can amplify the permeability of your site on various web search tools.

The content directs a full examination of the substance accessible on your site for
keywords.

On condition joins page speed, broken connections, and various other SEO choices.
It offers a framework to oversee clients, single tick promotions coordination,
page creation, and Captcha insurance and that is only the tip of the iceberg.

SiteSpy is intended for individuals who need subtleties for remarkable guests,
the site hit, skip rate, normal stay time, normal visits, and other guest examinations.

This PHP script gives an API through which you can just coordinate it into different applications.

SERP Checker PHP Code

Furthermore, it holds SEO devices for connecting investigation, watchword position examination,
the auto catchphrase idea, page status check, and so forth
Website design enhancement Information Portal
PHP Script
In case you will think about the subtleties of various sites and need to make
reports for cutthroat investigation then you ought to have this SEO script.

It has an amazing administrator board that assists you with overseeing different SEO choices, reports, API keys, custom pages, promoting spots, and so on.

Website optimization Information Portal content can likewise count HTML labels,
get area also page authority and you can investigate traffic cost too.

Scroll to Top