PHPackages                             thoma127/dict - 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. thoma127/dict

ActiveLibrary

thoma127/dict
=============

A simple PHP class for Python dictionary-like functionality.

v0.1.3(8y ago)1621GPL-3.0-or-laterPHPPHP ^5.3.3 || ^7.0

Since Feb 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/truetone/Dict)[ Packagist](https://packagist.org/packages/thoma127/dict)[ RSS](/packages/thoma127-dict/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (1)

Simple PHP Dict
===============

[](#simple-php-dict)

This is a simple PHP class to mimic some of the behavior of a Python dictionary.

Namely, easily storing and retrieving arbitrary data by key reference.

Usage
-----

[](#usage)

```
$data = ["foo" => "bar"];
$dict = new \UMN\CEHD\Dict\Dict($data);

$foo = $dict->get("foo"); // will be "bar"
$baz = $dict->get("baz"); // will be null
$json = $dict->toJSON(); // will be {"foo":"bar"} (string)

$array = $dict->toArray();

var_dump($array);

array(1) {
  'foo' =>
  string(3) "bar"
}

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

3003d ago

Major Versions

v0.1.2 → v1.x-dev2017-02-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a6b64cb8c8207388cce2fa442e89a503a288c2580fbbaaeb7c4f714c129e7d3?d=identicon)[thoma127](/maintainers/thoma127)

---

Top Contributors

[![thoma127](https://avatars.githubusercontent.com/u/32373872?v=4)](https://github.com/thoma127 "thoma127 (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thoma127-dict/health.svg)

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

PHPackages © 2026

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