PHPackages                             wmde/freezable-value-object - 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. wmde/freezable-value-object

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

wmde/freezable-value-object
===========================

PHP Trait for creating freezable value objects

v2.0.0(6y ago)031.6k↑10.6%GPL-2.0-or-laterPHPPHP &gt;=7.4

Since Nov 1Pushed 2y ago3 watchersCompare

[ Source](https://github.com/wmde/FreezableValueObject)[ Packagist](https://packagist.org/packages/wmde/freezable-value-object)[ RSS](/packages/wmde-freezable-value-object/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

FreezableValueObject
====================

[](#freezablevalueobject)

[![Build Status](https://camo.githubusercontent.com/2c410663641365623185f41cb596f2cc4f5fd5fd27358c008c527d9e44530a9a/68747470733a2f2f7472617669732d63692e6f72672f776d64652f467265657a61626c6556616c75654f626a6563742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wmde/FreezableValueObject)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a6528b6d5d636bb82cb04c0be564cc944faed0db8bb3477deb5ba7389bc9654b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f776d64652f467265657a61626c6556616c75654f626a6563742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wmde/FreezableValueObject/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/ae1c11e5a9ea957a399f1714fc330b63bd0d855c6ec65808e5b9b0dcf7fbe422/68747470733a2f2f706f7365722e707567782e6f72672f776d64652f667265657a61626c652d76616c75652d6f626a6563742f76657273696f6e2e706e67)](https://packagist.org/packages/wmde/freezable-value-object)[![Download count](https://camo.githubusercontent.com/415b7dc49ff6c34169ffa5bc33fcda904ccbf96e735241a83a9420250ddcfcfb/68747470733a2f2f706f7365722e707567782e6f72672f776d64652f667265657a61626c652d76616c75652d6f626a6563742f642f746f74616c2e706e67)](https://packagist.org/packages/wmde/freezable-value-object)

PHP Trait for creating freezable value objects.

For motivation and considerations, see [Missing in PHP7: Value objects](https://www.entropywins.wtf/blog/2016/02/03/missing-in-php7-value-objects/)

Installation
------------

[](#installation)

To use the FreezableValueObject library in your project, simply add a dependency on wmde/freezable-value-object to your project's `composer.json` file. Here is a minimal example of a `composer.json`file that just defines a dependency on FreezableValueObject 1.x:

```
{
    "require": {
        "wmde/freezable-value-object": "~1.0"
    }
}
```

Development
-----------

[](#development)

For development you need to have Docker and Docker-compose installed. Local PHP and Composer are not needed.

```
sudo apt-get install docker docker-compose

```

### Running Composer

[](#running-composer)

To pull in the project dependencies via Composer, run:

```
make composer install

```

You can run other Composer commands via `make run`, but at present this does not support argument flags. If you need to execute such a command, you can do so in this format:

```
docker run --rm --interactive --tty --volume $PWD:/app -w /app\
 --volume ~/.composer:/composer --user $(id -u):$(id -g) composer composer install -vvv

```

### Running the CI checks

[](#running-the-ci-checks)

To run all CI checks, which includes PHPUnit tests, PHPCS style checks and coverage tag validation, run:

```
make

```

### Running the tests

[](#running-the-tests)

To run just the PHPUnit tests run

```
make test

```

To run only a subset of PHPUnit tests or otherwise pass flags to PHPUnit, run

```
docker-compose run --rm app ./vendor/bin/phpunit --filter SomeClassNameOrFilter

```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 58.1% 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 ~975 days

Total

2

Last Release

2192d ago

Major Versions

1.0.0 → v2.0.02020-07-03

PHP version history (2 changes)1.0.0PHP &gt;=7.1

v2.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/451bd4039d530fed8f9c3da91bfa519233a397d2182cdfdcad700f6cfea19b7f?d=identicon)[Jeroen De Dauw](/maintainers/Jeroen%20De%20Dauw)

![](https://www.gravatar.com/avatar/054adb441e7ee248ec924bc45fa793835c284710eb31627587fa5de21bab9e96?d=identicon)[wmde](/maintainers/wmde)

---

Top Contributors

[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (18 commits)")[![Abban](https://avatars.githubusercontent.com/u/663782?v=4)](https://github.com/Abban "Abban (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![gbirke](https://avatars.githubusercontent.com/u/223326?v=4)](https://github.com/gbirke "gbirke (2 commits)")[![moiikana](https://avatars.githubusercontent.com/u/11670701?v=4)](https://github.com/moiikana "moiikana (2 commits)")[![wiese](https://avatars.githubusercontent.com/u/167557?v=4)](https://github.com/wiese "wiese (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wmde-freezable-value-object/health.svg)

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

###  Alternatives

[typo3/cms-recycler

TYPO3 CMS Recycler - Restore deleted records or remove them from the database permanently.

106.2M57](/packages/typo3-cms-recycler)[kodicms/module-loader

1515.2k11](/packages/kodicms-module-loader)[log1x/acf-fluent-helpers

Simple set of helper functions for ACF Fluent auto-loaded with Composer using generic function names.

1514.2k](/packages/log1x-acf-fluent-helpers)

PHPackages © 2026

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