PHPackages                             dhii/data-key-value-aware-abstract - 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. dhii/data-key-value-aware-abstract

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

dhii/data-key-value-aware-abstract
==================================

Traits for objects that are aware of a key, a value, or both.

v0.1-alpha4(8y ago)08.5k4MITPHPPHP ^5.4 | ^7.0

Since Aug 27Pushed 8y ago3 watchersCompare

[ Source](https://github.com/Dhii/data-key-value-aware-abstract)[ Packagist](https://packagist.org/packages/dhii/data-key-value-aware-abstract)[ RSS](/packages/dhii-data-key-value-aware-abstract/feed)WikiDiscussions develop Synced 2w ago

READMEChangelog (4)Dependencies (5)Versions (6)Used By (4)

Dhii - Key and Value Aware Traits
=================================

[](#dhii---key-and-value-aware-traits)

[![Build Status](https://camo.githubusercontent.com/3def0cae5aaf615943f85272d603c6c239d4fb7183112c3b7411f4b4619435ce/68747470733a2f2f7472617669732d63692e6f72672f646869692f646174612d6b65792d76616c75652d61776172652d61627374726163742e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/dhii/data-key-value-aware-abstract)[![Code Climate](https://camo.githubusercontent.com/316a033f4aee11d71c8e16c7e406e245a66467f12fcfc3a72997f68d0bb248bb/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f646174612d6b65792d76616c75652d61776172652d61627374726163742f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/data-key-value-aware-abstract)[![Test Coverage](https://camo.githubusercontent.com/02d256ed8ee8faffdf0da8c6b75e747bc6ea4dfae5b6858a1ba8b47c064df145/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f646174612d6b65792d76616c75652d61776172652d61627374726163742f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/data-key-value-aware-abstract/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/d05fb1d7054ee51c6432e51b6768bcb8aa7f92334072ebe6307e7d93631ddcf8/68747470733a2f2f706f7365722e707567782e6f72672f646869692f646174612d6b65792d76616c75652d61776172652d61627374726163742f76657273696f6e)](https://packagist.org/packages/dhii/data-key-value-aware-abstract)[![Latest Unstable Version](https://camo.githubusercontent.com/93ba18adbed1379b8755e74526585101b308c4563362cc38fe4942b02b592963/68747470733a2f2f706f7365722e707567782e6f72672f646869692f646174612d6b65792d76616c75652d61776172652d61627374726163742f762f756e737461626c65)](https://packagist.org/packages/dhii/data-key-value-aware-abstract)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Traits for objects that are aware of a key, a value, or both.

Traits
------

[](#traits)

- [`KeyAwareTrait`](src/KeyAwareTrait.php) - Allows storage and retrieval of a key. The key can be any scalar value, in which case it will be [normalized to string](https://github.com/Dhii/normalization-helper-base/blob/develop/src/NormalizeStringCapableTrait.php), or a [Stringable](https://github.com/Dhii/stringable-interface/blob/develop/src/StringableInterface.php) or `null`, in which case it will be preserved.
- [`ValueAwareTrait`](src/ValueAwareTrait.php) - Allows storage and retrieval of a value. A value can be anything.
- [`NameAwareTrait`](src/NameAwareTrait.php) - Allows storage and retrieval of a name. A name is a string or stringable that identifies something in a narrow scope.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.7% 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 ~9 days

Total

4

Last Release

3061d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1894e91b32c9f80d8f30a42d360af6983a507f1cf2c621b7c9a0a0de14e011c5?d=identicon)[XedinUnknown](/maintainers/XedinUnknown)

---

Top Contributors

[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (33 commits)")[![mecha](https://avatars.githubusercontent.com/u/5425482?v=4)](https://github.com/mecha "mecha (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dhii-data-key-value-aware-abstract/health.svg)

```
[![Health](https://phpackages.com/badges/dhii-data-key-value-aware-abstract/health.svg)](https://phpackages.com/packages/dhii-data-key-value-aware-abstract)
```

###  Alternatives

[bdelespierre/underscore

Underscore.js port in PHP

6744.0k1](/packages/bdelespierre-underscore)[sparkinzy/dcat-distpicker

省市区地址选择器，支持select2

262.7k1](/packages/sparkinzy-dcat-distpicker)

PHPackages © 2026

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