PHPackages                             joshdifabio/value - 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. joshdifabio/value

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

joshdifabio/value
=================

v0.1.0(7y ago)0211MITPHPPHP &gt;=7.1

Since Apr 27Pushed 7y agoCompare

[ Source](https://github.com/joshdifabio/value-php)[ Packagist](https://packagist.org/packages/joshdifabio/value)[ RSS](/packages/joshdifabio-value/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Value PHP
=========

[](#value-php)

*An interface for immutable value classes for PHP7.1+*

Value objects are one of the fundamental building blocks of modern software. However, value objects in PHP lack a common interface, making it impossible to create useful generic solutions to a range of problems, especially data structures.

This package provides a simple `Value` interface with two methods: `equals()`and `hashCode()`. Also provided are a number of helper functions, such as `equal()`, `hash()` and `hashValues()`, which make it easy for you to implement your own `Value` classes with minimal effort.

See also
--------

[](#see-also)

[AutoValue PHP](https://github.com/Space48/auto-value-php): Generated immutable value classes for PHP7.1+

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

2571d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/18f6db1b0f349a143a47f8a3c490b56ad644aa62669a0015bed16a98cdfa1985?d=identicon)[joshdifabio](/maintainers/joshdifabio)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/joshdifabio-value/health.svg)

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

PHPackages © 2026

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