PHPackages                             amneale/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. amneale/dictionary

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

amneale/dictionary
==================

PHP library for loading and reading collections of strings

v1.1.0(3y ago)1421[1 issues](https://github.com/amneale/dictionary/issues)[1 PRs](https://github.com/amneale/dictionary/pulls)MITPHPPHP ^7.4 || ^8.0CI passing

Since Jul 24Pushed 3mo agoCompare

[ Source](https://github.com/amneale/dictionary)[ Packagist](https://packagist.org/packages/amneale/dictionary)[ RSS](/packages/amneale-dictionary/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (2)Versions (13)Used By (0)

amneale/dictionary
==================

[](#amnealedictionary)

[![Build Status](https://camo.githubusercontent.com/ba0a732a52066297f5b1ddce6e0c9f091ffc93f7796a7ff8d48c65495ef12ad1/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f616d6e65616c652f64696374696f6e6172793f7374796c653d666c61742d737175617265)](https://travis-ci.com/amneale/dictionary)[![Code Quality](https://camo.githubusercontent.com/fd523ff027b353acd5917ed714095a6640bf1f994cd46d28c403bfcb356bf958/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f37353339623963336565316334353832616530346332366138366230326135653f7374796c653d666c61742d737175617265)](https://www.codacy.com/app/amneale/dictionary)

Install
-------

[](#install)

Via Composer

```
$ composer require amneale/dictionary
```

Usage
-----

[](#usage)

Creating a dictionary from strings, and reading the content a random, shuffled order:

```
$reader = new ShuffleReader();
$dictionary = new Dictionary('foo', 'bar', 'baz');

for ($i = 0; $i < count($dictionary); ++$i) {
    echo $reader->read($dictionary) . "\n";
}
```

Loading a dictionary from a file:

```
$dictionary = Dictionary\Loader\SimpleFileLoader::fromFile('/foo/bar/baz.txt');
```

Loading a dictionary from a CSV file:

```
$dictionary = Dictionary\Loader\SimpleFileLoader::fromFile('/foo/bar/baz.csv', ',');
```

Testing
-------

[](#testing)

To run automatic code-style fixer

```
$ make fmt
```

To run all tests

```
$ make test
```

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity71

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

Recently: every ~218 days

Total

11

Last Release

1445d ago

Major Versions

v0.8.0 → v1.0.02022-05-30

PHP version history (4 changes)v0.1PHP ^7.2

v0.4PHP ^7.3

v0.8.0PHP ^7.3 || ^8.0

v1.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![amneale](https://avatars.githubusercontent.com/u/10009435?v=4)](https://github.com/amneale "amneale (30 commits)")

---

Tags

collectiondictionaryphp

### Embed Badge

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

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

###  Alternatives

[litecms/page

Page package for litecms.

1851.8k1](/packages/litecms-page)

PHPackages © 2026

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