serp-vision / serp-vision-php-sdk
Interact with the SERP Vision API
1.0.3
2017-01-26 12:13 UTC
Requires
- php: >=5.3.0
- serp-vision/serp-vision-php-sdk: dev-master
This package is not auto-updated.
Last update: 2025-06-21 23:38:33 UTC
README
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/
#Get started
Install with composer (preferred)
Either run
$ php composer.phar require serp-vision/serp-vision-php-sdk "dev-master"
or add
"serp-vision/serp-vision-php-sdk": "dev-master"
to the require section of your composer.json file.
Without composer
Download
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'];
}