PHPackages                             bizmate/valueobjects - 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. bizmate/valueobjects

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

bizmate/valueobjects
====================

A PHP library/collection of classes aimed to help developers using and undestanding immutable objects.Forked from ytake/valueobjects due to unresponve PRs and broken builds.

3.0.1(1y ago)060MITPHPPHP &gt;=8.2

Since Apr 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bizmate/valueobjects)[ Packagist](https://packagist.org/packages/bizmate/valueobjects)[ RSS](/packages/bizmate-valueobjects/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (12)Versions (16)Used By (0)

ValueObjects
============

[](#valueobjects)

[![Build Status](https://camo.githubusercontent.com/c0a973f15fedb4ca1f94ef57be898a38d73a52cdfbf19694b58b9293903dfc80/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f62697a6d6174652f76616c75656f626a656374732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bizmate/valueobjects)[![Coverage Status](https://camo.githubusercontent.com/35fbe477584d6e491a50006ff01e851da9c6aaac0a729d1d7ee18f40755c430c/687474703a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f62697a6d6174652f76616c75656f626a656374732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/bizmate/valueobjects?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/17b2b3200582b867e59521400df86c7bf02ad01cd646963c1decac0dc73c924a/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f62697a6d6174652f76616c75656f626a656374732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bizmate/valueobjects/?branch=master)

[![License](https://camo.githubusercontent.com/6a536bd30e48a0a137a0a84d7cda21ea3a7e4665c01214730918d8da30d0e8d8/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f62697a6d6174652f76616c75656f626a656374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bizmate/valueobjects)[![Latest Version](https://camo.githubusercontent.com/a08a3ecc00bbb098e5ea042a4e1dfc596175441a6abf2d44d4959d6fef85b8b3/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62697a6d6174652f76616c75656f626a656374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bizmate/valueobjects)[![Total Downloads](https://camo.githubusercontent.com/518aa2228ec11f43d6b7431405c3d139ffb2340c869356c624b7d2d60fd8e31d/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62697a6d6174652f76616c75656f626a656374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bizmate/valueobjects)[![StyleCI](https://camo.githubusercontent.com/740f26069e770fb455d5a6a5d0b1813edb6386288db98ea18f0e4d6d7a937fb0/68747470733a2f2f7374796c6563692e696f2f7265706f732f38383735303133362f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/88750136)

[![Codacy Badge](https://camo.githubusercontent.com/2b629f54f91a92f23d0e081a9306f63d5714fc49f4459d195e3032a3bd8bd5d9/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f33613364376432653463666234393762393131333136623631636332616139352e7376673f7374796c653d666c61742d737175617265)](https://www.codacy.com/app/yuuki-takezawaOrganization/valueobjects?utm_source=github.com&utm_medium=referral&utm_content=bizmate/valueobjects&utm_campaign=Badge_Grade)[![SensioLabsInsight](https://camo.githubusercontent.com/797ae35ae3112045e87676e0be6d60aeb08d92cca7323f8f776d909a9407f3cc/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34313465396538662d343835342d343362342d386339382d3564323438653830336262332f6d696e692e706e67)](https://insight.sensiolabs.com/projects/414e9e8f-4854-43b4-8c98-5d248e803bb3)

A PHP library/collection of classes aimed to help developers using and undestanding immutable objects.

This is fork of the educational package nicolopignatelli/valueobjects that aims to provide more functionality for basic tasks and act as a object oriented wrapper for PHP types.

Install
=======

[](#install)

Supports &gt;= PHP 7.0

```
$ composer require bizmate/valueobjects
```

Develop
=======

[](#develop)

To run tests, checks and get a shell to the development environment you need `docker`, `docker-compose` and `make`.

Run composer and docker
-----------------------

[](#run-composer-and-docker)

Running `make up` will build the php docker image and run composer install as part of it.

You can also open a shell inside the container, for instance to perform some commands like composer changes and updates by running `make bash`

Run tests
---------

[](#run-tests)

You can run unit

`make tests`

code style checks and fixes

`make phpcs` and `make phpcbf

or the security checker with

`make securitychecker`

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~246 days

Total

9

Last Release

690d ago

Major Versions

1.0.1 → 2.0.02018-06-30

2.2.2 → 3.0.02023-10-23

PHP version history (3 changes)1.0.1PHP &gt;=5.4

2.0.0PHP &gt;=7.0

3.0.1PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fa724bf101d457a085175b10bb174978529c9c1bf42e23f3e606a940ddf08b3?d=identicon)[bizmate](/maintainers/bizmate)

---

Top Contributors

[![bizmate](https://avatars.githubusercontent.com/u/1427498?v=4)](https://github.com/bizmate "bizmate (7 commits)")[![ytake](https://avatars.githubusercontent.com/u/4454078?v=4)](https://github.com/ytake "ytake (7 commits)")[![addiks](https://avatars.githubusercontent.com/u/3450330?v=4)](https://github.com/addiks "addiks (2 commits)")[![kubotak-is](https://avatars.githubusercontent.com/u/13742370?v=4)](https://github.com/kubotak-is "kubotak-is (1 commits)")

---

Tags

Value ObjectvoarchitectureDomain Driven Design

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bizmate-valueobjects/health.svg)

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

###  Alternatives

[ytake/valueobjects

A PHP library/collection of classes aimed to help developers using and undestanding immutable objects.(temporary package)

6086.2k](/packages/ytake-valueobjects)[moneyphp/money

PHP implementation of Fowler's Money pattern

4.8k82.5M422](/packages/moneyphp-money)[phpmentors/domain-kata

Kata for domain models

73426.9k9](/packages/phpmentors-domain-kata)[adsmurai/currency

A small library to handle currencies and money values

4542.1k](/packages/adsmurai-currency)

PHPackages © 2026

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