PHP code example of rani / searchengine

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

    

rani / searchengine example snippets


 

namespace Rani\Searchengine;
t search engine (google.com or google.ae)
$searchengine = $client->setEngine("google.com");

//search keywords goes here
if($searchengine){
    $results = $client->searchdata(["keyword1","keyword2"]);

    //print the results
    print_r($results);
}
bash
php {filename}.php