PHP code example of astro / searchengine
1. Go to this page and download the library: Download astro/searchengine 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/ */
astro / searchengine example snippets
namespace Astro;
lient = new SearchEngine();
#set search engine (google.com or google.ae)
$client->setEngine("google.ae");
#enter search keywords
$results = $client->search(["amazon","tuna"]);
#print the results
print_r($results);
bash
php test.php