Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 135 | All time: 9,293 This week: 57![]() |
Version | License | PHP version | Categories | |||
ddg-api 1.0.0 | GNU General Publi... | 7 | Searching, Web services, Parsers, PHP 7 |
Description | Author | |
This package can search for data and related topics from DuckDuckGo. |
|
Multiple search engine search retrieval and storage
Need a engine to query different search engines
composer.json
{
"require" : {
"php" : ">=7.0",
"nkey/ddg-api" : "dev-master"
}
}
Example php script:
use Nkey\DDG\API\JsonProvider;
use Nkey\DDG\API\QueryResultParser;
$provider = new JsonProvider();
$json = $provider->query("mount rushmore");
$parser = new QueryResultParser();
$results = $parser->parseQueryResult($json);
foreach($results->getRelatedTopics() as $relatedTopic) {
printf('<a href="%s">%s</a>', $relatedTopic->getFirstURL(), $relatedTopic->getText());
}
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Usage description |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.