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

Abandoned → [gws/php-valueobjects](/?search=gws%2Fphp-valueobjects)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

gwis/php-valueobjects
=====================

A collection of useful value objects for PHP

v0.4.0(9y ago)1610.7k4[1 PRs](https://github.com/gwis/php-valueobjects/pulls)BSD-2-ClausePHPPHP &gt;=5.4

Since Nov 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gwis/php-valueobjects)[ Packagist](https://packagist.org/packages/gwis/php-valueobjects)[ RSS](/packages/gwis-php-valueobjects/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (2)Versions (9)Used By (0)

PHP Value Objects
=================

[](#php-value-objects)

[![master branch build status](https://camo.githubusercontent.com/c87d32cc2e163fbc73dc985403b9f63a7204b848d200798c9905e538e16a4429/68747470733a2f2f6170692e7472617669732d63692e6f72672f6777732f7068702d76616c75656f626a656374732e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/gws/php-valueobjects)

Overview
--------

[](#overview)

[Wikipedia](https://en.wikipedia.org/wiki/Value_object) has a pretty good general explanation of value objects.

- `Vo\DateRange` for date ranges
- `Vo\DateTimeRange` for date and time ranges
- `Vo\Ip` for IPv4 and IPv6 addresses
- `Vo\Mac` for MAC addresses
- `Vo\Money` for financial math and formatting using the `intl` extension

Check the tests to get some ideas on how to use these classes.

Documentation
-------------

[](#documentation)

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

[](#development)

There is a `Dockerfile` in the `docker` directory which can be used to build a version of PHP with the required extensions in order to run tests. If you have a Dockerized `composer`, you need to pass the `--ignore-platform-reqs` option to `update`, `install` etc. in order to skip the extension checks.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93% 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 ~217 days

Recently: every ~24 days

Total

7

Last Release

3622d ago

PHP version history (2 changes)v0.1.1PHP &gt;=5.3.3

v0.3.0PHP &gt;=5.4

### Community

Maintainers

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

---

Top Contributors

[![gws](https://avatars.githubusercontent.com/u/111252?v=4)](https://github.com/gws "gws (53 commits)")[![rquadling](https://avatars.githubusercontent.com/u/12801?v=4)](https://github.com/rquadling "rquadling (4 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[am-impact/amnav

Navigation Plugin for Craft

16726.5k](/packages/am-impact-amnav)[proteusthemes/wp-customizer-utilities

Advanced WordPress customizer controls and settings for better user experience.

329.4k1](/packages/proteusthemes-wp-customizer-utilities)[nightjar/ss-slug

Serve DataObjects as pages through an Action on a relation's Controller without referencing the ID

116.7k2](/packages/nightjar-ss-slug)

PHPackages © 2026

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