There is no license information available for the latest version (dev-master) of this package.

PHP Synonym Utilities

dev-master 2019-04-19 13:03 UTC

This package is auto-updated.

Last update: 2022-09-19 21:32:42 UTC


This librairy allows one to get english and french synonyms

Build Status

Coverage Status


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;


Find Synonym

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

Add other laguages

To add other languages Download your thesaurus synonym dictionnary Use one of these scripts mysql2sqlite grfiv

./ thesaurus_en.sql | sqlite3 thesaurus_en.db

Unit Tests

composer exec phpunit


Hugo Maugey visit my website ;)