adeel / searchengine
A simple search engine
dev-main
2022-07-06 18:50 UTC
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^7.4
This package is not auto-updated.
Last update: 2025-06-06 07:24:49 UTC
README
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 "