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

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

getwarp/value-object
====================

Value Object library for PHP

3.1.0(3y ago)18643MITPHPPHP ^7.4|^8.0

Since Apr 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/getwarp/value-object)[ Packagist](https://packagist.org/packages/getwarp/value-object)[ Docs](https://github.com/getwarp/value-object)[ GitHub Sponsors](https://github.com/getwarp)[ GitHub Sponsors](https://github.com/hustlahusky)[ RSS](/packages/getwarp-value-object/feed)WikiDiscussions 3.1.x Synced 1mo ago

READMEChangelogDependencies (10)Versions (8)Used By (3)

getwarp/value-object
====================

[](#getwarpvalue-object)

Value Object library for PHP

[GitHub](https://github.com/getwarp/value-object) • [Packagist](https://packagist.org/packages/getwarp/value-object) • [Installation](#installation) • [Usage](#usage)

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

[](#installation)

Via Composer

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

Usage
-----

[](#usage)

```
use Warp\ValueObject\AbstractIntValue;
use Warp\ValueObject\AbstractEnumValue;

class PostId extends AbstractIntValue {
}

$postId = PostId::new(10);
\assert($int->value() === 10);
\assert(PostId::new(10) === $postId);

/**
 * @method static self public()
 * @method static self draft()
 */
class PostStatus extends AbstractEnumValue {
    public const PUBLIC = 'public';

    public const DRAFT = 'draft';
}

$draftStatus = PostStatus::draft();
$publicStatus = PostStatus::public();

\assert($draftStatus !== $publicStatus);
```

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

[](#change-log)

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

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

[](#contributing)

[Report issues](https://github.com/getwarp/warp/issues) and [send pull requests](https://github.com/getwarp/warp/pulls) in the [main Warp repository](https://github.com/getwarp/warp). Please see [contributing guide](https://github.com/getwarp/warp/blob/3.1.x/CONTRIBUTING.md) and [code of conduct](https://github.com/getwarp/.github/blob/main/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

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

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

Total

8

Last Release

1365d ago

Major Versions

2.5.3 → 3.0.02022-04-22

2.5.x-dev → 3.0.22022-06-12

PHP version history (2 changes)2.5.3PHP ^7.2|^8.0

3.0.0PHP ^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 (12 commits)")

---

Tags

stringenumValue Objectuuidint

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[anthropic-ai/sdk

Anthropic PHP SDK

129134.7k5](/packages/anthropic-ai-sdk)[madewithlove/laravel-nova-uuid-support

Adds uuid and other string identifier support to Laravel Nova

28132.9k](/packages/madewithlove-laravel-nova-uuid-support)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)[sinergi/token

PHP library to generate random strings

188.7k9](/packages/sinergi-token)

PHPackages © 2026

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