Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

duckduckgo/php5-duckduckgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

The DuckDuckGo PHP5 API

Notes

  • This API requires PHP v5.3 or higher, due to the use of namespaces. A namespaceless version will be available later.
  • This API is still experimental - please report any and all bugs using the ticket system.

Usage

To use the DuckDuckGo PHP5 API in your application, include DuckDuckGo/API.php where you want to use the API, create a new instance of the DuckDuckGo\API class, and use it to improve the world!

Example

<?php
require_once('DuckDuckGo/API.php');
$api = new DuckDuckGo\API();
$api->secure = TRUE;
$ircInfo = $api->zeroClickQuery('Internet Relay Chat');
echo $ircInfo->definition;

Documentation

Due the use of JavaDoc, documentation can easily be generated from the files using e.g. Doxygen. A pre-generated version of the documentation will be supplied in the near future.

Comments?

Hit me up a message, or file a ticket! :) For quicker response, try catching me on IRC on #duckduckgo @ irc.freenode.net.

About

PHP5 library for the DuckDuckGo Zero-click Info API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages