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

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

verem/dictionary
================

A dictionary of city slangs

461PHP

Since Sep 17Pushed 10y ago2 watchersCompare

[ Source](https://github.com/andela-vdugeri/UrbanDictionary)[ Packagist](https://packagist.org/packages/verem/dictionary)[ RSS](/packages/verem-dictionary/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

\#Urban Dictionary The urban dictionary is a compilation of city slangs. It is a simple project that demonstrates the use of simple and basic programming concepts.

\#Design

Classes

- Dictionary: The main dictionary
- DictionaryManager: The data access layer, responsible for performing CRUD operations on the dictionary.
- RankWords: Returns a word count in descending order of words used in sample sentences in the dictionary

\#Testing The phpunit framework for testing is used to perform unit test on the classes. The TDD principle has been employed to make the application robust

Run this on bash to execute the tests

```
/vendor/bin/phpunit
```

\#Install

- To install this package, PHP 5.5+ and Composer are required

```
composer require verem/dictionary
```

\#usage

- Populating the dictionary with sample words

```
Dictionary::populateDictionary();

```

- Create a manager instance

```
$manager = new DictionaryManager();

```

- Create an entry - Returns mixed

```
$array =  $manager->createEntry($word, $meaning, $sampleSentence);

```

- Edit an entry - Returns mixed

```
$array = $manager->editEntry($word);

```

- DeleteEntry - Returns an array

```
$dictionary = $manager->deleteEntry($word)
``````

- Find an entry - Returns mixed

``````
$word = findEntry($word);
``````

- Get the dictionary

``````
$dictionary = Dictionary::getDictionary();

```

Change log
----------

[](#change-log)

Please check out [CHANGELOG](CHANGELOG.md) file for information on what has changed recently.

Contributing
------------

[](#contributing)

Please check out [CONTRIBUTING](CONTRIBUTING.md) file for detailed contribution guidelines.

Credits
-------

[](#credits)

Urban dictionary is maintained by `Verem Dugeri`.

License
-------

[](#license)

Urban dictionary is released under the MIT Licence. See the bundled [LICENSE](LICENSE.md) file for more details.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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.

### Community

Maintainers

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

### Embed Badge

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

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

###  Alternatives

[dan-on/php-interval-tree

Is an implementation of interval binary search tree according to Thomas Cormen book "Introduction to Algorithms".

1517.6k](/packages/dan-on-php-interval-tree)

PHPackages © 2026

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