PHPackages                             bq/watson - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. bq/watson

ActiveLibrary[HTTP &amp; Networking](/categories/http)

bq/watson
=========

A simple PHP library for accessing IBM's Watson API services

1.1.2.x-dev(9y ago)015MITPHPPHP &gt;=5.6.0

Since Mar 15Pushed 9y agoCompare

[ Source](https://github.com/joecblake/watson-api-php-client)[ Packagist](https://packagist.org/packages/bq/watson)[ RSS](/packages/bq-watson/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (5)Used By (0)

Watson PHP Client
=================

[](#watson-php-client)

A simple PHP library for accessing IBM's Watson API services

Basic Setup:
------------

[](#basic-setup)

```
$service = 'retrieve-and-rank';
$config = new \stdClass();
$config->username = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx';
$config->password = 'xxxxxxxxxxxxxx';
$config->url = sprintf('https://gateway.watsonplatform.net/%s/api',$service);
$config->version = 'v1';

$transportConfig = ['auth' =>  [$config->username, $config->password]];

$client = new Watson\Client($service,$config,$transportConfig);

$clientInstance = $client->getClientInstance();
$clientInstance->setServiceUrl($config->url);
$clientInstance->setServiceVersion($config->version);

```

### TODO

[](#todo)

\-- Implement unit tests
\-- Improve method returning and exception throwing
\-- Get rid of Monolog dependency (error logging should not be handled by library)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

4

Last Release

3387d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22896298?v=4)[joeblake](/maintainers/joeblake)[@joeblake](https://github.com/joeblake)

---

Top Contributors

[![joecblake](https://avatars.githubusercontent.com/u/26333107?v=4)](https://github.com/joecblake "joecblake (24 commits)")

---

Tags

phpclientsdkrestintegrationibmwatson

### Embed Badge

![Health badge](/badges/bq-watson/health.svg)

```
[![Health](https://phpackages.com/badges/bq-watson/health.svg)](https://phpackages.com/packages/bq-watson)
```

###  Alternatives

[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.6M18](/packages/xeroapi-xero-php-oauth2)[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1830.2k2](/packages/huaweicloud-huaweicloud-sdk-php)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34199.5k2](/packages/onesignal-onesignal-php-api)[zenditplatform/zendit-php-sdk

PHP client for Zendit API

1194.4k](/packages/zenditplatform-zendit-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
