Adeel Search Engine
Installation:
- Open cmd as Administrator
- Goto to root directory
- Create an empty file called "composer.json"
- Run "composer require adeel/searchengine:dev-main" command
Usage:
After installation include following lines in your respected php file.
require_once DIR . '/vendor/autoload.php';
use adeel\searchengine\SearchEngine;
$client = new SearchEngine();
//You can set your search engine here
$client->setEngine("google.com");
//Pass your keywords as an array in the following line
$results = $client->search(["best hosting","best movie"]);
echo "
";
// Your results will be available in $results variable as an array having the status of the operation and the data retrieved
var_dump($results);
echo "
";