PHPackages                             netbrothers-gmbh/version-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. netbrothers-gmbh/version-bundle

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

netbrothers-gmbh/version-bundle
===============================

Trigger based version tables with MariaDB/MySQL and Doctrine

v4.0.0(3mo ago)33.3k2MITPHPPHP &gt;=8.2CI passing

Since Jun 13Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/netbrothers-gmbh/version-bundle)[ Packagist](https://packagist.org/packages/netbrothers-gmbh/version-bundle)[ RSS](/packages/netbrothers-gmbh-version-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (5)Versions (11)Used By (0)

NetBrothers Version Bundle
==========================

[](#netbrothers-version-bundle)

 [![Latest Stable Version](https://camo.githubusercontent.com/06b071f0439eff9552889ca85ffb4199594ebb570e1d7624e8056baf6b1ecb9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e657462726f74686572732d676d62682f76657273696f6e2d62756e646c65)](https://packagist.org/packages/netbrothers-gmbh/version-bundle) [![Total Downloads](https://camo.githubusercontent.com/b640c3256a57dd01bf8611b711b3d355c6a6f49b8918ae575198900cb3b16337/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e657462726f74686572732d676d62682f76657273696f6e2d62756e646c65)](https://packagist.org/packages/netbrothers-gmbh/version-bundle) [![License](https://camo.githubusercontent.com/952a4315a51f50f2c909752919f5c8e5d073277c36c1cff983a3291e277dfa67/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e657462726f74686572732d676d62682f76657273696f6e2d62756e646c65)](https://github.com/netbrothers-gmbh/version-bundle/blob/master/LICENSE) [![Build Status](https://github.com/netbrothers-gmbh/version-bundle/actions/workflows/build.yml/badge.svg)](https://github.com/netbrothers-gmbh/version-bundle/actions/workflows/build.yml)

This hybrid package works as a [Symfony bundle](https://symfony.com/doc/current/bundles.html) or as a standalone PHP package for managing versioned tables in MariaDB and MySQL databases using Doctrine. It automatically creates versioning triggers for your database tables.

> **Note**: This package is designed to work specifically with **MariaDB/MySQL**. It is **not** compatible with other database systems like PostgreSQL or SQLite.

Features
--------

[](#features)

- Creates and maintains `_version` tables for your Doctrine entities.
- Automatically generates `INSERT` and `UPDATE` triggers.
- Works as a native Symfony Bundle.
- Works as a standalone package in any PHP project with a PSR-11 container.
- Compatible with Symfony 7.4 / 8.x and Doctrine DBAL 4.

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

[](#installation)

```
composer require netbrothers-gmbh/version-bundle
```

Quick Start (Symfony Bundle)
----------------------------

[](#quick-start-symfony-bundle)

1. **Add a `version` column** to your entity using the provided trait.
2. **Run the command** to generate version tables and triggers: ```
    php bin/console netbrothers:version
    ```

Quick Start (Standalone Package)
--------------------------------

[](#quick-start-standalone-package)

1. **Create a container file** (e.g., `config/container.php`) that returns your PSR-11 container with a configured Doctrine `EntityManagerInterface`.
2. **Run the command** and pass the container file path: ```
    vendor/bin/netbrothers-version --container-file=config/container.php
    ```

Documentation
-------------

[](#documentation)

For detailed instructions on installation, configuration, and usage (both for Symfony and standalone mode), please see the **[full documentation](doc/index.md)**.

License
-------

[](#license)

This bundle is released under the MIT license. See the bundled [LICENSE](LICENSE) file for details.

Authors
-------

[](#authors)

- [Stefan Wessel, NetBrothers GmbH](https://netbrothers.de)
- [Thilo Ratnaweera, NetBrothers GmbH](https://netbrothers.de)

[![NetBrothers Logo](https://camo.githubusercontent.com/15f2d95c9afe46f4bf078f912ae2241f4e18e060a94ebb3fbc8aed45d9f12b09/68747470733a2f2f6e657462726f74686572732e64652f77702d636f6e74656e742f75706c6f6164732f323032302f31322f6e657462726f74686572735f6c6f676f2e706e67)](https://netbrothers.de)

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance80

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 58.6% 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 ~166 days

Recently: every ~275 days

Total

9

Last Release

105d ago

Major Versions

v1.1.0 → v2.0.02023-12-06

v2.0.0 → v3.0.02024-05-29

v3.0.0 → v4.0.02026-02-02

PHP version history (3 changes)v1.0.0PHP &gt;=7.4

v2.0.0PHP &gt;=8.1

v3.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b978ff9166a8511f29c075766eb124d3b47b6963efbc0babd811104b4eda0c8?d=identicon)[netbrothers](/maintainers/netbrothers)

---

Top Contributors

[![netbrothers-tr](https://avatars.githubusercontent.com/u/15143604?v=4)](https://github.com/netbrothers-tr "netbrothers-tr (34 commits)")[![netbrothers-sw](https://avatars.githubusercontent.com/u/9692134?v=4)](https://github.com/netbrothers-sw "netbrothers-sw (24 commits)")

---

Tags

databasedoctrinemariadbmysqlphpsymfonybundledatabasemysqldoctrinemariadbversioning

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/netbrothers-gmbh-version-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/netbrothers-gmbh-version-bundle/health.svg)](https://phpackages.com/packages/netbrothers-gmbh-version-bundle)
```

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58723.9M36](/packages/scienta-doctrine-json-functions)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[data-dog/audit-bundle

Audit bundle for symfony2 and doctrine orm, logs any database change

141901.7k1](/packages/data-dog-audit-bundle)[longitude-one/doctrine-spatial

Doctrine multi-platform support for spatial types and functions, compliant with Doctrine 2.19, 3.1, and dev ones (3.2 and 4.0).

891.4M1](/packages/longitude-one-doctrine-spatial)[bartlett/php-compatinfo-db

Reference Database of all functions, constants, classes, interfaces on PHP standard distribution and about 110 extensions

1183.0k1](/packages/bartlett-php-compatinfo-db)

PHPackages © 2026

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