SERP-Vision-php-sdk
This SDK is available for SERP Vision. You can use the API to provide SERP data in your own application.
Request your API-Key here https://serpvision.com.
The full documentation can be found on the website https://serpvision.com/api-endpoints/, (*1)
Get started
Install with composer (preferred), (*2)
Either run, (*3)
$ php composer.phar require serp-vision/serp-vision-php-sdk "dev-master"
or add, (*4)
"serp-vision/serp-vision-php-sdk": "dev-master"
to the require section of your composer.json file., (*5)
Without composer
, (*6)
Download, (*7)
git clone https://github.com/SERPVision/SERPVision-php-sdk.git
Example
use SERPVision\SERPVisionApi;
const SERPVISION_API_KEY = "MY-API-KEY";
$serpVision = new SERPVisionApi();
$res = $serpVision->getCredit(SERPVISION_API_KEY);
if ($res['status'] == 'ok') {
// Display the credit
echo $res['credit'];
}
else {
// Some error occurred
echo $res['message'];
}