PHP code example of developerxnoxs / multi-search-engine
1. Go to this page and download the library: Download developerxnoxs/multi-search-engine 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/ */
developerxnoxs / multi-search-engine example snippets
use SearchEngine\GoogleSearch;
use SearchEngine\BingSearch;
use SearchEngine\DuckDuckGoSearch;
$google = new GoogleSearch();
$bing = new BingSearch();
$duck = new DuckDuckGoSearch();
$query = "ChatGPT";
echo "Google:\n";
print_r($google->search($query)->url());
print_r($google->search($query)->json());
print_r($google->search($query)->data());