PHP Classes


Recommend this page to a friend!
  Classes of MERAJ AHMAD SIDDIQUI  >  PHP IBM Watson  >  >  Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP IBM Watson
Call IBM Watson API services
Author: By
Last change:
Date: 4 years ago
Size: 1,323 bytes


Class file image Download


IBM Watson is PHP SDK of using IBM watson services provided by IBM. This sdk is unofficial. I personally wish to develop this and i will maintain is as long as possible.

You are free to fork this, use it, and create and issue, I also request you to fork , contribute and create a pull request.


It is advised to install it using composer.

composer require merajsiddiqui/ibm-watson

Signup IBM watson and get credentials to use API


  "url": "",
  "username": "some random string password provided",
  "password": "randompassword"

Authenticating to Service


include dirname(__DIR__). "/vendor/autoload.php";
use IBMWatson\Config;
$api_credintial_json_file = "/config/credential.json";
$config = Config::init($api_credintial_json_file);

Using services:

Translator Service


use IBMWatson\Language\LanguageTranslator\Translator;
//$config as above
$translator = new Translator($config);

Support or Contact

Having any trouble mail me at : or create an issue. Always use IBM watson API refrence for using this sdk.

For more information send a message to info at phpclasses dot org.