PHPackages                             dualmedia/dynamic-orm-value-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. dualmedia/dynamic-orm-value-bundle

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

dualmedia/dynamic-orm-value-bundle
==================================

Bundle for disabling fields in DoctrineORM

1.1.0(1mo ago)1302MITPHPPHP ^8.4

Since Sep 24Pushed 1mo agoCompare

[ Source](https://github.com/dualmediaspzoo/dynamic-orm-value-bundle)[ Packagist](https://packagist.org/packages/dualmedia/dynamic-orm-value-bundle)[ RSS](/packages/dualmedia-dynamic-orm-value-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (26)Versions (6)Used By (0)

[![Packagist Downloads](https://camo.githubusercontent.com/a10887df855d0c797a78e6da2f9914463cb880865d5029610c3ba011cd65e2b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6475616c6d656469612f64796e616d69632d6f726d2d76616c75652d62756e646c65)](https://packagist.org/packages/dualmedia/dynamic-orm-value-bundle)

Dynamic ORM Value Bundle
========================

[](#dynamic-orm-value-bundle)

A Symfony + Doctrine bundle to allow dynamic values on entity persisting.

This bundle will allow you to configure dynamic values to be created for entities when they are persisted in the application.

Install
-------

[](#install)

Simply `composer require dualmedia/dynamic-orm-value-bundle`

Then add the bundle to your `config/bundles.php` file like so

```
return [
    Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
    // other bundles ...
    DualMedia\DynamicORMValueBundle\DynamicORMValueBundle::class => ['all' => true],
];
```

Setup
-----

[](#setup)

Mark the properties you'd like to generate dynamically upon persisting with `#[DynamicValue]` with appropriate options.

To let the bundle discover your entities you must create a symfony configuration file (by default it's yaml) and add any required fields.

A sample configuration is provided below

```
# dm_dynamic_orm.yaml
dm_dynamic_orm:
  entity_paths: # list of directories that contain your entities
    - '%kernel.project_dir%/src/SimpleApi/Entity'
    - '%kernel.project_dir%/src/Common/Entity'
    - '%kernel.project_dir%/src/ExternalApi/Entity'
```

Entity example
--------------

[](#entity-example)

Say you have an order entity, but you use a numerical id for easy tracking. But you also want to show a "simple" order id for your users. This value obviously needs to be generated, which is fine if you have 1 entity like this. But what if it's your order, your internal transaction stuff, a username, and more?

This bundle solves this repeating code issue and allows for a nice way to configure it.

```
#[ORM\Entity]
class MyOrder {
    #[ORM\Id]
    #[ORM\Column(name: 'id', type: 'integer')]
    #[ORM\GeneratedValue(strategy: 'AUTO')]
    private int|null $id;

    // your other fields

    #[ORM\Column]
    #[DynamicValue(options: ['length' => 10])] // 8 is default
    private string|null $publicId = null;
}
```

Your field `publicId` will now be automatically generated when the entity is being persisted. You don't need to worry about uniqueness, as it's checked during generation.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance89

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

Total

4

Last Release

54d ago

PHP version history (2 changes)1.0.0PHP ^8.3

1.1.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/0642c17604cd51622ad504c999eb75ba78e5768bfa998eaa2922366fc90f0302?d=identicon)[pkly](/maintainers/pkly)

---

Top Contributors

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

---

Tags

doctrinephpsymfonysymfony-bundle

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dualmedia-dynamic-orm-value-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dualmedia-dynamic-orm-value-bundle/health.svg)](https://phpackages.com/packages/dualmedia-dynamic-orm-value-bundle)
```

###  Alternatives

[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.

1155.2k](/packages/rcsofttech-audit-trail-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M373](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M462](/packages/pimcore-pimcore)

PHPackages © 2026

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