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.0.2(7mo ago)0138↓100%MITPHPPHP ^8.3

Since Sep 24Pushed 7mo 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 1mo ago

READMEChangelog (3)Dependencies (13)Versions (4)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

36

—

LowBetter than 82% of packages

Maintenance63

Regular maintenance activity

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

3

Last Release

227d ago

### 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 (6 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

[sylius/sylius

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

8.4k5.6M647](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M309](/packages/easycorp-easyadmin-bundle)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[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)

PHPackages © 2026

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