On April 1st the Rank Checker price will grow by 2 kop. for a keyword on XS Pricing Plan. But for you the price won't change for now!
We've frozen old prices till June 1st for all accounts, active in 2025.
Follow us on Telegram 📧

Topvisor SDK: PHP

topvisorSDK v2 (zip)

System requirements

  • PHP 5.4 or above
  • cURL (php libcurl)

Getting started

Important!

  • Place SDK outside the website root
  • Restrict external access to the config.php file (e.g. using a browser address bar)

For the safety reasons, do not proceed to the next steps, until you complete the above steps.

Specify authorization parameters in the config.php file:


Access

Namespace SDK: TopvisorSDKV2.

Linking SDK files to your scripts:

	<?php
	
	use TopvisorSDKV2 as TV;

	// replace "..." with a path to the autoload.php file if you use composer
	include(__DIR__.'/../../autoload.php');

	// write a path to SDK Topvisor, if you don't use composer
	//include_once('topvisor-sdk/src/V2/Fields.php');
	//include_once('topvisor-sdk/src/V2/Page.php');
	//include_once('topvisor-sdk/src/V2/Pen.php');
	//include_once('topvisor-sdk/src/V2/Session.php');

	use TopvisorSDKV2 as TV;

Basic objects

  • Session - set session
  • Fields - additional class to work with the fields
  • Pen - create request
  • Page - results page

Example