adeel/searchengine

dev-main 2022-07-06 18:50 UTC

This package is not auto-updated.

Last update: 2025-06-06 07:24:49 UTC


README

Installation:

  1. Open cmd as Administrator
  2. Goto to root directory
  3. Create an empty file called "composer.json"
  4. 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 "

";