PHPackages                             sinergi/dictionary - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sinergi/dictionary

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sinergi/dictionary
==================

PHP Dictionary library

0.4.0(11y ago)1515.3k↑1553.3%12MITPHPPHP &gt;=5.4.0

Since Apr 1Pushed 10y ago4 watchersCompare

[ Source](https://github.com/sinergi/dictionary)[ Packagist](https://packagist.org/packages/sinergi/dictionary)[ Docs](https://github.com/sinergi/dictionary)[ RSS](/packages/sinergi-dictionary/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (16)Used By (2)

Dictionary
==========

[](#dictionary)

[![Build Status](https://camo.githubusercontent.com/7d254108378e20c204c62c235dc89bd9ac15ed5473177d791b8635d9b73b35b2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73696e657267692f64696374696f6e6172792f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/sinergi/dictionary)[![Latest Stable Version](https://camo.githubusercontent.com/10c794f27756d750eb1e5e69275c2380a0f1931c5094b77fbf0add3c2a3b91c7/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73696e657267692f64696374696f6e6172792e7376673f7374796c653d666c6174)](https://packagist.org/packages/sinergi/dictionary)[![Total Downloads](https://camo.githubusercontent.com/81410e4845b955f561069b0502f5ae076ecc13b5fda0556da70b6827558e52fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73696e657267692f64696374696f6e6172792e7376673f7374796c653d666c6174)](https://packagist.org/packages/sinergi/dictionary)[![License](https://camo.githubusercontent.com/9531ecb12aef8a2f5b0d5190b4315148f58cb7b94dd6ae2cdec7644085ad9ee9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73696e657267692f64696374696f6e6172792e7376673f7374796c653d666c6174)](https://packagist.org/packages/sinergi/dictionary)

Localization and text management library for PHP.

Requirements
------------

[](#requirements)

This library uses PHP 5.4+.

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

[](#installation)

It is recommended that you install the Dictionary library [through composer](http://getcomposer.org/). To do so, add the following lines to your `composer.json` file.

```
{
    "require": {
       "sinergi/dictionary": "dev-master"
    }
}
```

Usage
-----

[](#usage)

Setup the Dictionary class with the path to your text files:

```
use Sinergi\Dictionary\Dictionary;

$language = 'en';
$directory = __DIR__ . "/examples";

$dictionary = new Dictionary(
    $language,
    $directory
);
```

You can then use the dictionary like this:

```
$dictionary['example']['title'];
```

Examples
--------

[](#examples)

See more examples in the [examples folder](https://github.com/sinergi/dictionary/tree/master/examples).

Example of a dictionary file:

```
return [
    'title' => "This is an example"
];
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

Recently: every ~37 days

Total

14

Last Release

4070d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3b6bf01b626fd571d50bbbe004923f52f6cdd3f4e1ba97066ada146688524d6?d=identicon)[sinergi](/maintainers/sinergi)

---

Top Contributors

[![gabrielbull](https://avatars.githubusercontent.com/u/671923?v=4)](https://github.com/gabrielbull "gabrielbull (19 commits)")

---

Tags

textdictionarysinergi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sinergi-dictionary/health.svg)

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

###  Alternatives

[froala/wysiwyg-editor

A beautiful jQuery WYSIWYG HTML rich text editor. High performance and modern design make it easy to use for developers and loved by users.

5.4k320.3k5](/packages/froala-wysiwyg-editor)[ckeditor/ckeditor

JavaScript WYSIWYG web text editor.

5244.3M80](/packages/ckeditor-ckeditor)[tinymce/tinymce

Web based JavaScript HTML WYSIWYG editor control.

1708.1M121](/packages/tinymce-tinymce)[unisharp/laravel-ckeditor

JavaScript WYSIWYG web text editor (for laravel).

387766.8k5](/packages/unisharp-laravel-ckeditor)[nojimage/twitter-text-php

A library of PHP classes that provide auto-linking and extraction of usernames, lists, hashtags and URLs from tweets.

1192.0M7](/packages/nojimage-twitter-text-php)[w8tcha/ckeditor-wordcount-plugin

WordCount Plugin for CKEditor Editor

77482.0k](/packages/w8tcha-ckeditor-wordcount-plugin)

PHPackages © 2026

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