adeel/searchengine
Composer 安装命令:
composer require adeel/searchengine
包简介
A simple search engine
README 文档
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 "
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-06