PHP API Library

A collection of PHP classes for communication with the CommonSense API.


The PHP class Api (class.Api.php) handles all the request to the CommonSense API. It provides wrappers to create, update and delete the data concepts that are available in CommonSense.
Features of the API Library are:

  • CommonSense login with PHP sessions
    • username & password
    • oAuth
  • CommonSense concepts to PHP objects
  • CommonSense interaction via PHP object member functions

Getting Started

To get started just:

include_once "class.Api.php";

$sense_api = new Api();
if($sense_api->login("test", "test"))

Further reading

For more information, see the documentation.