PHP code example of wildlyinaccurate / google-suggestqueries-api

1. Go to this page and download the library: Download wildlyinaccurate/google-suggestqueries-api 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/ */

    

wildlyinaccurate / google-suggestqueries-api example snippets




// This file is generated by Composer


// $client->getClient() is an instance of Buzz\Client\Curl, so you can set
// various options before performing a query:
$client->getClient()->setProxy('proxyhost:8080');

$suggestions = $client->getSuggestions($query);

// Suggestions can be sorted by their num_queries value:
$sortedSuggestions = $suggestions->sortByNumQueries();