blesy-babu/search-engine

There is no license information available for the latest version (v1.0.0) of this package.

This is a search engine that can be used to search for a word in a given array of text.

v1.0.0 2022-07-02 08:23 UTC

This package is auto-updated.

Last update: 2025-06-29 01:52:50 UTC


README

This is a search engine that can be used to search for a word in a given array of text.

Installation

Php 7+ must be already installed and composer dependency management tool. And CURL is required.

Package available from packagist.

Get Started

if you're using composer, you can add this package

composer require blesy-babu/search-engine

Then you need to load the dependency in your script.

require '../vendor/autoload.php';

Usage

require '../vendor/autoload.php';

use SearchEngine\Search;

$API_KEY = 'your_api_key';

$DOMAIN = 'google.com';

$query = ['Coffee', 'Tea'];

$client = new Search($API_KEY, $DOMAIN);

$results = $client->search($query);

Need to pass 3 variables, $API_KEY ,$DOMAIN,$query . we het api key from - serpapi ,and u can pass $DOMAIN as ex. google.com,googl.ae..., and $query is the words to search. it is an array. from this we get ARRY of serach result.

Features

  • GET array of search item
  • can change search engin

API

Scrape Google and other search engines from our fast, easy, and complete API.

Authors