wingsuitist / googlesearchwrapper
PHP Google Search Wrapper based on HTTPFUL
dev-master
2018-02-10 13:41 UTC
Requires
- nategood/httpful: dev-master
This package is not auto-updated.
Last update: 2024-05-09 15:09:04 UTC
README
PHP class wrapping the google web search REST API. Based on httpful, psr-4 and composer.
usage
add the package to your composer.json:
"require": {
"wingsuitist/googlesearchwrapper": "dev-master",
run composer update in your composer project root
include autoloader from composer:
require('../vendor/autoload.php');
create a search object:
$search = \felixideas\GoogleSearchWrapper\Search::search('Hello World');
coming soon: all the options that you can set for the search
let it search and get the result object:
$result = $search->run()
get the full response from the result object:
$result->getFullResponse();
coming soon: iterator implementation for the result object