hugsbrugs / php-synonym
PHP Synonym Utilities
Installs: 1 709
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 1
Open Issues: 0
This package is auto-updated.
Last update: 2024-10-20 01:43:55 UTC
README
This librairy allows one to get english and french synonyms
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
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
./mysql2sqlite.sh thesaurus_en.sql | sqlite3 thesaurus_en.db
Unit Tests
composer exec phpunit
Author
Hugo Maugey visit my website ;)