vcarreira/wordsapi

A simple PHP WordsAPI wrapper. A dictionary and thesaurus for the English language.

Maintainers

Package info

github.com/vcarreira/wordsapi

Homepage

pkg:composer/vcarreira/wordsapi

Statistics

Installs: 20 085

Dependents: 1

Suggesters: 0

Stars: 3

Open Issues: 0

1.0.1 2016-02-15 15:39 UTC

This package is not auto-updated.

Last update: 2026-03-15 03:18:14 UTC


README

A wrapper around WordsAPI.

Installation

Add the following line to the require section of composer.json:

{
    "require": {
        "vcarreira/wordsapi": ">= 1.0"
    }
}

Usage

In order to use the wrapper you must first get an API key from WordsAPI. The following examples show how to use the WordsService to fetch information regarding some word.

    $service = new \WordsApi\WordService(API_KEY);
    $word = $service->word('effect');
    var_dump($word->definitions());
    var_dump($word->synonyms());
    var_dump($word->rhymes());
    var_dump($word->pronunciation());

Limitation

Version 1.0 does not support search requests.

Links