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. [Utility &amp; Helpers](/categories/utility)
4. /
5. phprise/common-value-object

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

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

Extended PHP types with common value objects applying OTAKU philosophy

v1.0.0(4mo ago)019↓100%5MITPHP ^8.4

Since Jan 6Pushed 4mo 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 1mo ago

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

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 87% of packages

Maintenance82

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community13

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

122d 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)
```

###  Alternatives

[symfony/polyfill-php72

Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions

4.8k674.7M31](/packages/symfony-polyfill-php72)[symfony/polyfill-intl-icu

Symfony polyfill for intl's ICU-related data and classes

2.6k251.4M96](/packages/symfony-polyfill-intl-icu)[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.2k64.2M574](/packages/nette-php-generator)[consolidation/site-process

A thin wrapper around the Symfony Process Component that allows applications to use the Site Alias library to specify the target for a remote call.

5345.3M8](/packages/consolidation-site-process)[sycho/flarum-profile-cover

Adds the ability to add a cover image to a profile.

1836.6k](/packages/sycho-flarum-profile-cover)

PHPackages © 2026

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