PHPackages                             mettleworks/big-huge-thesaurus-client - 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. [API Development](/categories/api)
4. /
5. mettleworks/big-huge-thesaurus-client

ActiveLibrary[API Development](/categories/api)

mettleworks/big-huge-thesaurus-client
=====================================

PHP Client around Big Huge Thesaurus API

v1.2.0(4y ago)69601[1 issues](https://github.com/mettleworks/big-huge-thesaurus-client/issues)MITPHPPHP ^7.3|^8.0CI failing

Since Jan 3Pushed 4y ago4 watchersCompare

[ Source](https://github.com/mettleworks/big-huge-thesaurus-client)[ Packagist](https://packagist.org/packages/mettleworks/big-huge-thesaurus-client)[ Docs](https://github.com/mettle/big-huge-thesaurus-client)[ RSS](/packages/mettleworks-big-huge-thesaurus-client/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

BigHugeThesaurusClient
======================

[](#bighugethesaurusclient)

[![Latest Version on Packagist](https://camo.githubusercontent.com/dfe29aded41eca46b8960bc919be9a6f2751fc9b8ad9056598340f088169a7e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6574746c652f6269672d687567652d7468657361757275732d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mettle/big-huge-thesaurus-client)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/b03f317f728779bc88ad885ba97b27e4e75cde1280d42c0d7c8cb0cd8ad97823/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6574746c652f6269672d687567652d7468657361757275732d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mettle/big-huge-thesaurus-client)

PHP Wrapper for the [Big Huge Labs Thesaurus API](http://words.bighugelabs.com/).

Install
-------

[](#install)

Via Composer

```
$ composer require mettle/big-huge-thesaurus-client
```

Usage
-----

[](#usage)

```
$API_KEY = 'Get an api key @ https://words.bighugelabs.com/api.php';

$client = new Mettleworks\BigHugeThesaurusClient\BigHugeThesaurusClient($API_KEY);
$response = $client->lookup('love');
```

The response object is an instance of `ThesaurusResponse`, an object that wraps the original response and adds a few convenience methods. You can optionally pass an argument to each method to indicate if you want only nouns (`noun`), verbs (`verb`), adjectives (`adjective`) or adverbs (`adverb`) otherwise they will return all results combined. The signature of the methods is the following:

```
/**
 * Get the synonyms from the response
 */
$response->getSynonyms($type = null): array

/**
 * Get the antonyms from the response
 */
$response->getAntonyms($type = null): array

/**
 * Get the similar terms from the response
 */
$response->getSimilarTerms($type = null): array

/**
 * Get related terms from the response
 */
$response->getRelatedTerms($type = null): array

/**
 * Cast response to array (returns the original response)
 */
$response->toArray(): array

/**
 * Cast response to JSON
 */
$response->toJson()
```

The client throws specific exceptions when an error occurs. Those errors are documented on the [Big Huge Thesaurus Api Page](https://words.bighugelabs.com/api.php).

```
try {
    $response = $client->lookup('love');
} catch (NotFoundException $ex) {
    // Not Found
} catch (UsageExceededException $ex) {
    // Usage exceeded
} catch (InactiveKeyException $ex) {
    // Key not active
} catch (MissingWordsException $ex) {
    // No words provided
} catch (NotWhitelistedException $ex) {
    // IP address blocked
}
```

Additionally if an error occurs outside the listed ones, the original Guzzle Exception is thrown.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Maurizio Bonani](https://github.com/mauricius)
- [Grant Janecek](https://github.com/grantjanecek)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% 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 ~563 days

Total

3

Last Release

1605d ago

PHP version history (3 changes)v1.0.0PHP ~7.1

v1.1.0PHP ^7.3

v1.2.0PHP ^7.3|^8.0

### Community

Maintainers

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

---

Top Contributors

[![mauricius](https://avatars.githubusercontent.com/u/7000852?v=4)](https://github.com/mauricius "mauricius (14 commits)")[![grantjanecek](https://avatars.githubusercontent.com/u/17169721?v=4)](https://github.com/grantjanecek "grantjanecek (1 commits)")

---

Tags

big-huge-thesaurus-clientbig huge thesaurusmettle

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mettleworks-big-huge-thesaurus-client/health.svg)

```
[![Health](https://phpackages.com/badges/mettleworks-big-huge-thesaurus-client/health.svg)](https://phpackages.com/packages/mettleworks-big-huge-thesaurus-client)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1772.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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