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

ActiveLibrary

phprise/common-value-object
===========================

Extended PHP types with common value objects applying OTAKU philosophy

v1.0.0(2mo ago)019↓100%1MITPHP ^8.4

Since Jan 6Pushed 2mo agoCompare

[ Source](https://github.com/phprise-foundation/common-value-object)[ Packagist](https://packagist.org/packages/phprise/common-value-object)[ RSS](/packages/phprise-common-value-object/feed)WikiDiscussions 1.x Synced today

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

Common Value Object
===================

[](#common-value-object)

Extended PHP types with common value objects applying OTAKU philosophy.

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

[](#installation)

```
composer require phprise/common-value-object
```

Usage
-----

[](#usage)

### ArrayObject

[](#arrayobject)

`ArrayObject` extends the native PHP `ArrayObject` but strictly adheres to the project's philosophy, providing utility methods for key replacement and strict type handling.

```
use Phprise\Common\ValueObject\ArrayObject;

$data = new ArrayObject(['old_key' => 'value']);

// Replace a key
$data->replaceKey('old_key', 'new_key');

echo $data['new_key']; // Outputs: value
```

### StringObject

[](#stringobject)

`StringObject` is an immutable wrapper around strings, providing expressive methods for text manipulation and case conversion.

```
use Phprise\Common\ValueObject\StringObject;

$string = new StringObject('hello world');

echo $string->toCamel();  // helloWorld
echo $string->toSnake();  // hello_world
echo $string->toKebab();  // hello-world
echo $string->toPascal(); // HelloWorld
echo $string->toTitle();  // Hello World
echo $string->toUpper();  // HELLO WORLD
```

Philosophy
----------

[](#philosophy)

Please read [PHILOSOPHY.md](PHILOSOPHY.md) to learn more about our philosophy.

License
-------

[](#license)

MIT License

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

[](#contributing)

Check [CONTRIBUTING.md](CONTRIBUTING.md) to learn more about our contributing guidelines.

Code of Conduct
---------------

[](#code-of-conduct)

Check [CODE\_OF\_CONDUCT.md](CODE_OF_CONDUCT.md) to learn more about our code of conduct.

Security
--------

[](#security)

Check [SECURITY.md](SECURITY.md) to learn more about our security policy.

Changelog
---------

[](#changelog)

Check [CHANGELOG.md](CHANGELOG.md) for more information.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance85

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

2

Last Release

75d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b1815540bc9ab8012b61aa12e1a35025d9a0b11a1642977192fd173b6bfc5aa?d=identicon)[esdras-schonevald](/maintainers/esdras-schonevald)

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

---

Top Contributors

[![esdras-schonevald](https://avatars.githubusercontent.com/u/64711203?v=4)](https://github.com/esdras-schonevald "esdras-schonevald (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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