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(2y ago)138.7k↓32.4%1[1 PRs](https://github.com/upscalesoftware/doctrine-value-object-bundle/pulls)Apache-2.0PHPPHP ^8.1

Since Jun 8Pushed 2y 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 1mo 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 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

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

1075d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ff1791f1bd72221702e39e356c25b108de26dea1f5b56416f7957e8fa43ea92?d=identicon)[upscalesoftware](/maintainers/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

[symfony-cmf/routing-bundle

Symfony RoutingBundle

16313.5M88](/packages/symfony-cmf-routing-bundle)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[doctrine/phpcr-bundle

Symfony DoctrinePHPCRBundle

1602.6M41](/packages/doctrine-phpcr-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.

1022.4k](/packages/rcsofttech-audit-trail-bundle)[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.

813.1k](/packages/ahmed-bhs-doctrine-doctor)[heymoon/doctrine-psql-enum

Store PHP native enums as PostgeSQL custom enum types

254.9k](/packages/heymoon-doctrine-psql-enum)

PHPackages © 2026

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