phpwndb / phpwndb
PHP API for WordNet (https://wordnet.princeton.edu/)
v0.1
2023-02-26 18:46 UTC
Requires
- php: >=8.1
- symfony/config: ^6.2
- symfony/dependency-injection: ^6.2
- symfony/finder: ^6.2
- symfony/yaml: ^6.2
Requires (Dev)
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^10.0
README
WordNet database provides kind of semantic of words stored in files. This project is PHP API for easy reading of these files. See examples/wordNet.php.
Getting Started
Prerequisites
The code needs PHP 8.1 or greater.
Installing
composer require phpwndb/phpwndb
Basic usage
$wordNet = (new PhpWndb\Dataset\WordNetProvider())->getWordNet(); $synsets = $wordNet->search('word'); foreach ($synsets as $synset) { echo $synset->getGloss() . "\n"; }
Running the tests
composer install
composer phpstan
composer tests
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.