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

Abandoned → [getwarp/value-object](/?search=getwarp%2Fvalue-object)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

spaceonfire/value-object
========================

Value Object library for PHP

2.5.2(4y ago)12.1k↓81.8%2MITPHPPHP ^7.2|^8.0

Since Mar 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/spaceonfire/value-object)[ Packagist](https://packagist.org/packages/spaceonfire/value-object)[ Docs](https://github.com/spaceonfire/value-object)[ Fund](https://liberapay.com/hustlahusky)[ RSS](/packages/spaceonfire-value-object/feed)WikiDiscussions 2.5.x Synced 1w ago

READMEChangelog (10)Dependencies (6)Versions (17)Used By (2)

Value Object by spaceonfire
===========================

[](#value-object-by-spaceonfire)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0966e2bd01b56692ed6cbcf71ef39c15a0213c62b5b786fa03355c69865909f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73706163656f6e666972652f76616c75652d6f626a6563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spaceonfire/value-object)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/fe71392b268d5bbc91ddc4c837a902796db034a80ceaebb6b92f92b126b3d81e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73706163656f6e666972652f76616c75652d6f626a6563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spaceonfire/value-object)[![Code Coverage](https://camo.githubusercontent.com/9de976bbd126069c504655639ff884cfc9704d2c4a6a98fecfb95d5bf0ebe7dc/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742d7371756172652675726c3d6874747073253341253246253246676973742e67697468756275736572636f6e74656e742e636f6d253246687573746c616875736b79253246643632363037633161326534373037393539623031343265306561383736636425324672617725324676616c75652d6f626a6563742e6a736f6e)](https://camo.githubusercontent.com/9de976bbd126069c504655639ff884cfc9704d2c4a6a98fecfb95d5bf0ebe7dc/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742d7371756172652675726c3d6874747073253341253246253246676973742e67697468756275736572636f6e74656e742e636f6d253246687573746c616875736b79253246643632363037633161326534373037393539623031343265306561383736636425324672617725324676616c75652d6f626a6563742e6a736f6e)

Value Object library for PHP.

Install
-------

[](#install)

Via Composer

```
$ composer require spaceonfire/value-object
```

Usage
-----

[](#usage)

```
$int = new class(10) extends \spaceonfire\ValueObject\IntValue {};
\Webmozart\Assert\Assert::same($int->value(), 10);
```

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

[](#change-log)

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

Contributing
------------

[](#contributing)

[Report issues](https://github.com/spaceonfire/spaceonfire/issues) and [send Pull Requests](https://github.com/spaceonfire/spaceonfire/pulls) in the [main spaceonfire repository](https://github.com/spaceonfire/spaceonfire). Please see [CONTRIBUTING](https://github.com/spaceonfire/spaceonfire/blob/master/CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](https://github.com/spaceonfire/spaceonfire/blob/master/CODE_OF_CONDUCT.md) for details.

Credits
-------

[](#credits)

- [Constantine Karnaukhov](https://github.com/hustlahusky)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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

Every ~46 days

Recently: every ~86 days

Total

17

Last Release

1507d ago

Major Versions

1.7.1 → 2.5.02021-04-21

2.5.x-dev → 3.0.x-dev2022-04-03

PHP version history (3 changes)1.0.0PHP ^7.2

1.7.1PHP ^7.2|^8.0

3.0.x-devPHP ^7.4|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3947942?v=4)[Constantine Karnaukhov](/maintainers/tntrex)[@tntrex](https://github.com/tntrex)

---

Top Contributors

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

---

Tags

dddphp7value-objectstringenumValue Objectdatetimetimeuuiddateint

### Embed Badge

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

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

###  Alternatives

[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[brick/date-time

Date and time library

3623.3M61](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

2079.7M16](/packages/aeon-php-calendar)[tplaner/when

Date/Calendar recursion library.

5261.0M5](/packages/tplaner-when)[danielstjules/php-pretty-datetime

Generates human-readable strings for PHP DateTime objects

5791.9k](/packages/danielstjules-php-pretty-datetime)[kartik-v/php-date-formatter

A Javascript datetime formatting and manipulation library using PHP date-time formats.

461.5M3](/packages/kartik-v-php-date-formatter)

PHPackages © 2026

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