PHPackages                             maciejkrol/wikidiki - 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. maciejkrol/wikidiki

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

maciejkrol/wikidiki
===================

WikiDiki lets you translate words (mostly nouns) across multiple languages based on wikipedia.org

1.0.2(9y ago)319MITPHP

Since Jul 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/maciejkrol/wikidiki-php)[ Packagist](https://packagist.org/packages/maciejkrol/wikidiki)[ RSS](/packages/maciejkrol-wikidiki/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

WikiDiki
========

[](#wikidiki)

WikiDiki uses [Wikipedia](https://wikipedia.org/) to translate words across multiple languages.

Installation
------------

[](#installation)

[![Total Downloads](https://camo.githubusercontent.com/7aa864f99d398ba10cd5f595f95ed00a4242e9e299f43a8f294c27df637229cd/68747470733a2f2f706f7365722e707567782e6f72672f6d616369656a6b726f6c2f77696b6964696b692f76657273696f6e)](https://packagist.org/packages/maciejkrol/wikidiki)

You can install the library using composer.

```
composer require maciejkrol/wikidiki

```

Basic usage
-----------

[](#basic-usage)

WikiDiki usage is super simple.

```
//instantiate
$wikidiki = new \maciejkrol\wikidiki\wikidiki ();
```

When translating you must tell WikiDiki what is the base language. English in this case. WikiDiki uses ISO two letter language codes.

This way you will get all the available translations as an associative array with the language codes as keys.

```
$word       =   'Tea';
$language   =   'en';

$translated = $wikidiki->translate($word, $language);   //array
```

You can also provide a third argument, a string with a single language code to get a single translated string.

```
$word       =   'Tea';
$language   =   'en';
$to         =   'pl';

$translated = $wikidiki->translate($word, $language, $to);   //string
```

or an array to retrieve an array of translations.

```
$word       =   'Tea';
$language   =   'en';
$to         =   ['pl', 'it'];

$translated = $wikidiki->translate($word, $language, $to);   //array
```

In case WikiDiki can't find a translation `null` will be returned;

From now on you can get search suggestions:

```
$word       =   'Tea';
$language   =   'en';

$translated = $wikidiki->suggest($word, $language, $to);   //array
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~3 days

Total

3

Last Release

3627d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/666924?v=4)[Maciej Król](/maintainers/MaciejKrol)[@maciejkrol](https://github.com/maciejkrol)

---

Top Contributors

[![maciejkrol](https://avatars.githubusercontent.com/u/666924?v=4)](https://github.com/maciejkrol "maciejkrol (7 commits)")

---

Tags

translationwikipediawikidiki

### Embed Badge

![Health badge](/badges/maciejkrol-wikidiki/health.svg)

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

###  Alternatives

[gettext/gettext

PHP gettext manager

70231.8M115](/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..

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

PHPackages © 2026

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