PHPackages                             hugsbrugs/php-synonym - 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. hugsbrugs/php-synonym

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

hugsbrugs/php-synonym
=====================

PHP Synonym Utilities

51.8k1PHP

Since Apr 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hugsbrugs/php-synonym)[ Packagist](https://packagist.org/packages/hugsbrugs/php-synonym)[ RSS](/packages/hugsbrugs-php-synonym/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

php-synonym
===========

[](#php-synonym)

This librairy allows one to get english and french synonyms

[![Build Status](https://camo.githubusercontent.com/0698d18135e3463c05495c43203c2194f2ddba4c68bd0d782504731281e03fa6/68747470733a2f2f7472617669732d63692e6f72672f6875677362727567732f7068702d73796e6f6e796d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hugsbrugs/php-filesystem)

[![Coverage Status](https://camo.githubusercontent.com/58b35baafd2abf96e2117c1c267604ff4a03e235f14a1c9cd966b52b35c30271/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6875677362727567732f7068702d73796e6f6e796d2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/hugsbrugs/php-synonym?branch=master)

Install
-------

[](#install)

Install package with composer

```
composer require hugsbrugs/php-synonym

```

In your PHP code, load librairy

```
require_once __DIR__ . '/../vendor/autoload.php';
use Hug\Synonym\Synonym as Synonym;

```

Usage
-----

[](#usage)

Find Synonym

```
Synonym::find($word, $lang = 'en');

```

Add other laguages
------------------

[](#add-other-laguages)

To add other languages Download your thesaurus synonym dictionnary Use one of these scripts [mysql2sqlite](https://github.com/dumblob/mysql2sqlite)[grfiv](https://gist.github.com/grfiv/b79ace3656113bcfbd9b7c7da8e9ae8d)

```
./mysql2sqlite.sh thesaurus_en.sql | sqlite3 thesaurus_en.db

```

Unit Tests
----------

[](#unit-tests)

```
composer exec phpunit

```

Author
------

[](#author)

Hugo Maugey [visit my website ;)](https://hugo.maugey.fr)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![hugsbrugs](https://avatars.githubusercontent.com/u/4385090?v=4)](https://github.com/hugsbrugs "hugsbrugs (3 commits)")

---

Tags

phpphp-synonymsynonym

### Embed Badge

![Health badge](/badges/hugsbrugs-php-synonym/health.svg)

```
[![Health](https://phpackages.com/badges/hugsbrugs-php-synonym/health.svg)](https://phpackages.com/packages/hugsbrugs-php-synonym)
```

###  Alternatives

[cubeta/cubeta-starter

Cubeta-Starter: A developer's Swiss army knife for seamless CRUD operations. Choose between core integration or dev dependency. Enjoy a user-friendly GUI for code generation, enhancing your development workflow. Say goodbye to repetition, embrace productivity with Cubeta-Starter!

132.2k](/packages/cubeta-cubeta-starter)

PHPackages © 2026

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