PHPackages                             stratdes/vo - 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. stratdes/vo

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

stratdes/vo
===========

Generic ValueObjects library

2.0.0(4y ago)47.0k↑66.7%12MITPHPPHP &gt;=8.0

Since Feb 21Pushed 4y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (6)Used By (2)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/137d00402bb552221c01d2c22c1c21e9a3704c472d140118a157a7efc3955faa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73747261746465732f766f2f6261646765732f7175616c6974792d73636f72652e706e673f623d312e312e30)](https://scrutinizer-ci.com/g/stratdes/vo/?branch=1.1.0)[![Build Status](https://camo.githubusercontent.com/63a9667b2703c100b98d4eef74b5e6ccb20fc89dbde1ad4c79efcc5569e475ed/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73747261746465732f766f2f6261646765732f6275696c642e706e673f623d312e312e30)](https://scrutinizer-ci.com/g/stratdes/vo/build-status/1.1.0)[![Code Coverage](https://camo.githubusercontent.com/35dacf58d19a37dd5f4c2ed2ddebcbb91f37174324ae263bd573d595970c2075/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73747261746465732f766f2f6261646765732f636f7665726167652e706e673f623d312e312e30)](https://scrutinizer-ci.com/g/stratdes/vo/?branch=1.1.0)

StraTDeS VO library
===================

[](#stratdes-vo-library)

StraTDeS VO is a library containing some standard value objects ready to use.

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

[](#installation)

To install the library just run:

```
composer require stratdes/vo
```

Usage
-----

[](#usage)

Using this library is quite straightforward. All the Value Objects have a named constructor, usually create or fromValue.

Some examples:

```
use StraTDeS\VO\Single\Currency;
use StraTDeS\VO\Single\Money;
use StraTDeS\VO\Single\Name;
use StraTDeS\VO\Single\Description;
use StraTDeS\VO\Single\PhoneNumber;

$name = Name::fromValue("John Smith");
$description = Description::fromValue("This is a description");
$money = Money::create(
    20034,
    Currency::fromValue(Currency::USD)
);
$phoneNumber = PhoneNumber::create("34", "938140000");
```

You can use collections, also. For example, for a collection of Emails, you have:

```
use StraTDeS\VO\Collection\EmailCollection;
use StraTDeS\VO\Single\Email;

$emailCollection = EmailCollection::create();

$emailCollection->add(Email::fromValue('email1@mail.com'));
$emailCollection->add(Email::fromValue('email2@mail.com'));
$emailCollection->add(Email::fromValue('email3@mail.com'));

foreach($emailCollection as $email) {
    echo $email->value() . "\n\r";
}
```

Issues
------

[](#issues)

If you find some issue in the library, please feel free to open an issue here on Github.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

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

Total

5

Last Release

1506d ago

Major Versions

1.1.0.x-dev → 2.0.0.x-dev2022-03-25

PHP version history (2 changes)1.0.0PHP &gt;=7.4 &lt; 8.1

2.0.0.x-devPHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6607762?v=4)[Alex Hernandez](/maintainers/stratdes)[@stratdes](https://github.com/stratdes)

---

Top Contributors

[![stratdes](https://avatars.githubusercontent.com/u/6607762?v=4)](https://github.com/stratdes "stratdes (39 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stratdes-vo/health.svg)

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k74.6k86](/packages/pocketmine-pocketmine-mp)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[getdkan/dkan

DKAN Open Data Catalog

385135.4k2](/packages/getdkan-dkan)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[tomaj/hermes

Simple php background processing library

38251.0k5](/packages/tomaj-hermes)

PHPackages © 2026

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