blesy-babu/search-engine
Composer 安装命令:
composer require blesy-babu/search-engine
包简介
This is a search engine that can be used to search for a word in a given array of text.
README 文档
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
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-07-02