/README.md

https://github.com/duckduckgo/php5-duckduckgo · Markdown · 32 lines · 27 code · 5 blank · 0 comment · 0 complexity · 05ea983ffb9d30d04cdb01b5bcaf9042 MD5 · raw file

  1. The DuckDuckGo PHP5 API
  2. =======================
  3. Notes
  4. -----
  5. - This API requires PHP *v5.3* or higher, due to the use of namespaces.
  6. A namespaceless version will be available later.
  7. - This API is still *experimental* - please report any and all bugs using the ticket system.
  8. Usage
  9. -----
  10. To use the DuckDuckGo PHP5 API in your application, include DuckDuckGo/API.php where you want
  11. to use the API, create a new instance of the DuckDuckGo\API class, and use it to improve the world!
  12. Example
  13. -------
  14. <?php
  15. require_once('DuckDuckGo/API.php');
  16. $api = new DuckDuckGo\API();
  17. $api->secure = TRUE;
  18. $ircInfo = $api->zeroClickQuery('Internet Relay Chat');
  19. echo $ircInfo->definition;
  20. Documentation
  21. -------------
  22. Due the use of JavaDoc, documentation can easily be generated from the files using e.g. Doxygen.
  23. A pre-generated version of the documentation will be supplied in the near future.
  24. Comments?
  25. ---------
  26. Hit me up a message, or file a ticket! :)
  27. For quicker response, try catching me on IRC on `#duckduckgo @ irc.freenode.net`.