PHP code example of spyserp / phpclient

1. Go to this page and download the library: Download spyserp/phpclient library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

spyserp / phpclient example snippets



Code = 'your-api-code';
$aparser = new SpySerp($apiCode);


// Return array of all used search engines from SpySerp.com
$result = $aparser->searchEngines();

$projectId = 12345;
// Return data categories of project with id = 12345 if you can view this project
$result = $aparser->projectCategories($projectId);