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

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

digipolisgent/value
===================

Package containing the interfaces and abstract implementations to support the usage of Value objects in packages and projects.

3.0.0(3y ago)083.9k↓46.3%5MITPHPPHP ^7.4 || ^8.0

Since Oct 26Pushed 3y ago2 watchersCompare

[ Source](https://github.com/district09/php_package_dg-value)[ Packagist](https://packagist.org/packages/digipolisgent/value)[ Docs](https://github.com/district09/php_package_dg-value)[ RSS](/packages/digipolisgent-value/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (8)Used By (5)

Digipolis - Value objects
=========================

[](#digipolis---value-objects)

Package containing the interfaces and abstract implementations to support the usage of Value objects in other packages and projects.

[![Latest Stable Version](https://camo.githubusercontent.com/a23fcd7c0d3164788eda41421c08611a53999f41dd1b72f3c4fabb128ccd44d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64696769706f6c697367656e742f76616c75652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digipolisgent/value)[![Total Downloads](https://camo.githubusercontent.com/4e5b30a4835dd0f9286c57b4d08124ee9aa025b7bf7fa3d5be263aec807e3c10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64696769706f6c697367656e742f76616c75652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digipolisgent/value)[![License](https://camo.githubusercontent.com/f5803f97d5a70c42adebf748ece7c53552abb14a9d726b40ae9a4305dd697350/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646973747269637430392f7068705f7061636b6167655f64672d76616c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

[![Build Status](https://camo.githubusercontent.com/afac1eb02462af49871ef81551c04e7b1e840cf1dfc7294dfaf99eb990242de1/68747470733a2f2f6170692e7472617669732d63692e636f6d2f646973747269637430392f7068705f7061636b6167655f64672d76616c75652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/district09/php_package_dg-value)[![Maintainability](https://camo.githubusercontent.com/45c85ba76645b82815082a802c3722b8c909dbb26a568e91d112faffb8603953/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f33313663383566666635613239386536343530632f6d61696e7461696e6162696c697479)](https://codeclimate.com/repos/5bd2f0f01155160cf60025f7/maintainability)[![Test Coverage](https://camo.githubusercontent.com/b3f65ac29b654d3c1f34265530f5f407dab6ac2c7e31c5e89bf440a2b8e3d4db/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f33313663383566666635613239386536343530632f746573745f636f766572616765)](https://codeclimate.com/repos/5bd2f0f01155160cf60025f7/test_coverage)[![PHP from Packagist](https://camo.githubusercontent.com/ed27cf1d867c02ce2ea465917f71752683ac32d1a517d523e503d15c94f7a8fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64696769706f6c697367656e742f76616c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/ed27cf1d867c02ce2ea465917f71752683ac32d1a517d523e503d15c94f7a8fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64696769706f6c697367656e742f76616c75652e7376673f7374796c653d666c61742d737175617265)

Usage
-----

[](#usage)

This package contains the following interfaces:

- `ValueInterface` : the basic interface for all value objects.
- `ValueFromArrayInterface` : extra interface that adds, to a value object, the static method to create it from an array of data.
- `ValueToArrayInterface` : extra interface that adds, to a value object, the method to extract its data as an array.
- `CollectonInterface` : the basic interface for a collection of values of the same type.

And the following abstract implementations:

- `ValueAbstract` : Abstract implementation of the `ValueInterface`, implements only the `sameValueTypeAs()` method.
- `CollectionAbstract` : Abstract implementation of the `CollectonInterface`, implements the method to compare two collections (`sameValueAs()`) and to get the collection as an iterator (`getIterator()`).

Install
-------

[](#install)

Install the package:

```
composer require digipolisgent/value
```

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

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

Run the test suite:

```
vendor/bin/phpunit
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 90.2% 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 ~278 days

Recently: every ~343 days

Total

6

Last Release

1370d ago

Major Versions

1.1.2 → 2.0.02019-11-26

2.0.0 → 3.0.02022-08-17

PHP version history (3 changes)1.0.0PHP &gt;=5.6

2.0.0PHP &gt;=7.2

3.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![zero2one](https://avatars.githubusercontent.com/u/133124?v=4)](https://github.com/zero2one "zero2one (46 commits)")[![MPParsley](https://avatars.githubusercontent.com/u/1823998?v=4)](https://github.com/MPParsley "MPParsley (3 commits)")[![Jelle-S](https://avatars.githubusercontent.com/u/1828542?v=4)](https://github.com/Jelle-S "Jelle-S (2 commits)")

---

Tags

d09check22webValue Objectdigipolisgentdistrict09

### Embed Badge

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

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

###  Alternatives

[moneyphp/money

PHP implementation of Fowler's Money pattern

4.8k82.5M422](/packages/moneyphp-money)[adsmurai/currency

A small library to handle currencies and money values

4542.1k](/packages/adsmurai-currency)[gowork/values

PHP primitive types value objects.

3435.2k1](/packages/gowork-values)

PHPackages © 2026

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