PHPackages                             willskates/dictionaryapi - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. willskates/dictionaryapi

ActiveLibrary[Localization &amp; i18n](/categories/localization)

willskates/dictionaryapi
========================

On-demand definition source.

v1.0.1(13y ago)013BSDPHPPHP &gt;=5.3.0

Since Jan 21Pushed 13y ago2 watchersCompare

[ Source](https://github.com/WillSkates/dictionary-api-wrapper)[ Packagist](https://packagist.org/packages/willskates/dictionaryapi)[ Docs](http://github.com/WillSkates/dictionary-api-wrapper)[ RSS](/packages/willskates-dictionaryapi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

\#Dictionary API A set of classes that allows a developer to be able to fetch definitions for words and terms.

NOTE: This library requires composer. You can find out more over at . There is also a windows installer:  or if you are using a unix system (MAC, Linux etc. ) you can find some instructions here:

Clone or download the contents of this repository onto your local machine, setup your project as you normally would and add the following to the "require" section of your composer.json file:

```
"willskates/dictionaryapi": "v1.0.0"

```

Make sure that you also set the minimum-stability to 'dev'.

```
"minimum-stability": "dev"

```

After you have done this, run the command:

```
composer install

```

into your command line from within the specified folder.

\##From then on you may use the dictionary like this:

```
$dictionary = new WillSkates\Dictionary();

try {
	$word = $dictionary->word('hello');

	echo $word->getDefinition(); // array(0=>'A greeting ...');
	echo $word->getFirstDefinition() // 'A greeting ...';
	echo $word->getTranslation('fr'); //Bonjour.

	echo $dictionary->word('hello'); // 'A greeting ...' (uses __toString()).
	echo $dictionary->word('hello', 'en'); // 'A greeting ...' (uses __toString()).

	echo $dictionary->word('hello')->translate('de')[0]['translation']; //Hallo :D

} catch ( WillSkates\Dictionary\Exceptions\FetchException $e ) {
	echo "Oh no, we couldnt get any information for 'hello'";
} catch ( WillSkates\Dictionary\Exceptions\ConnectionProblemException $e ) {
	echo "oh no the api is not available.";
} catch ( WillSkates\Dictionary\Exceptions\TranslationFetchException $e ) {
	echo "Just.... dont try to translate an english word into english.";
}

```

\##Test Status [![Build Status](https://camo.githubusercontent.com/0182dbbed9f67d2b2ff16e377105584575e1d2de8f7004dc161777eb62d865ca/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f57696c6c536b617465732f44696374696f6e6172792d4150492d577261707065722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/WillSkates/Dictionary-API-Wrapper)

\###Next The plan is to release the ability to define and translate words first. After that's complete I will also work towards releasing methods which allow you to view all of the words that begin with a given letter. Those lists will also be paginated.

```
####Note:

	This functionality is already in the api but not planned for this phase of the wrapper, You can achieve that by using http://dictionary.stuffby.ws/letter/a for example.
	Enjoy!

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity60

Established project with proven stability

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.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

4864d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8dc0128a6930aa3fe58c3edca03a777a09229d97f6bfda9e01d0c81ca990c656?d=identicon)[WillSkates](/maintainers/WillSkates)

---

Tags

translationdictionarydefinition

### Embed Badge

![Health badge](/badges/willskates-dictionaryapi/health.svg)

```
[![Health](https://phpackages.com/badges/willskates-dictionaryapi/health.svg)](https://phpackages.com/packages/willskates-dictionaryapi)
```

###  Alternatives

[gettext/gettext

PHP gettext manager

70130.2M102](/packages/gettext-gettext)[inpsyde/multilingual-press

Simply THE multisite-based free open source plugin for your multilingual websites.

2414.0k1](/packages/inpsyde-multilingual-press)[wcm/wcm-lang-switch

Adds a button to the admin toolbar. This buttons allows users to seamlessly switch between available languages..

212.0k](/packages/wcm-wcm-lang-switch)

PHPackages © 2026

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