PHPackages                             upscale/doctrine-value-object-bundle - 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. [Database &amp; ORM](/categories/database)
4. /
5. upscale/doctrine-value-object-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

upscale/doctrine-value-object-bundle
====================================

Symfony bundle for yokai/doctrine-value-object

1.0.1(3y ago)1310.9k↓46.1%1[1 PRs](https://github.com/upscalesoftware/doctrine-value-object-bundle/pulls)Apache-2.0PHPPHP ^8.1

Since Jun 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/upscalesoftware/doctrine-value-object-bundle)[ Packagist](https://packagist.org/packages/upscale/doctrine-value-object-bundle)[ RSS](/packages/upscale-doctrine-value-object-bundle/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Symfony Bundle for Doctrine Value Object
========================================

[](#symfony-bundle-for-doctrine-value-object)

This package wraps [yokai/doctrine-value-object](https://github.com/yokai-php/doctrine-value-object) in a bundle to simplify its use in Symfony projects.

**Features:**

- Zero config setup
- Attribute annotation

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

[](#installation)

Install via [Composer](https://getcomposer.org/) as a dependency:

```
composer require upscale/doctrine-value-object-bundle
```

Usage
-----

[](#usage)

### Attribute Annotation

[](#attribute-annotation)

Register a value object using an attribute annotation (available since PHP 8):

```
use Upscale\DoctrineValueObjectBundle\Attribute\ValueObject;
use Yokai\DoctrineValueObject\StringValueObject;

#[ValueObject]
class PhoneNumber implements StringValueObject {...}
```

Reference the value object type by an underscore separated short class name:

```
#[Entity]
class Person
{
    #[Column(type: 'phone_number')]
    private PhoneNumber $phone;

    // ...
}
```

### Type Naming

[](#type-naming)

You can customize the type name, including use a fully-qualified class name, for example:

```
#[ValueObject(type: PhoneNumber::class)]
class PhoneNumber implements StringValueObject {...}
```

```
#[Entity]
class Person
{
    #[Column(type: PhoneNumber::class)]
    private PhoneNumber $phone;

    // ...
}
```

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

[](#contributing)

Pull Requests with fixes and improvements are welcome!

License
-------

[](#license)

Copyright © Upscale Software. All rights reserved.

Licensed under the [Apache License, Version 2.0](https://github.com/upscalesoftware/doctrine-value-object-bundle/blob/main/LICENSE.txt).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

1121d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6521759?v=4)[Upscale Software](/maintainers/upscalesoftware)[@upscalesoftware](https://github.com/upscalesoftware)

---

Top Contributors

[![sshymko](https://avatars.githubusercontent.com/u/1231423?v=4)](https://github.com/sshymko "sshymko (10 commits)")

### Embed Badge

![Health badge](/badges/upscale-doctrine-value-object-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

9410.8k](/packages/ahmed-bhs-doctrine-doctor)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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