PHPackages                             mettle/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mettle/big-huge-thesaurus-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mettle/big-huge-thesaurus-client
================================

PHP Client around Big Huge Thesaurus API

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

Since Jan 3Pushed 4y ago4 watchersCompare

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

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 72% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

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

1557d 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://www.gravatar.com/avatar/e3aca6f811144bbbc5d4408f2b632ac387df07dc02c1981484494694ed793502?d=identicon)[mauricius](/maintainers/mauricius)

![](https://www.gravatar.com/avatar/d86740b4b3f70476df6134920713ef288244c19778e6d1e66f9ceba402e34200?d=identicon)[jontybehr](/maintainers/jontybehr)

---

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/mettle-big-huge-thesaurus-client/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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