PHPackages                             marein/symfony-lock-doctrine-migrations-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. marein/symfony-lock-doctrine-migrations-bundle

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

marein/symfony-lock-doctrine-migrations-bundle
==============================================

Perform concurrent doctrine migrations safely.

1.0.4(1w ago)7183.4k↓67.2%2[1 issues](https://github.com/marein/symfony-lock-doctrine-migrations-bundle/issues)MITPHPPHP ^8.0CI passing

Since Mar 17Pushed 1w ago1 watchersCompare

[ Source](https://github.com/marein/symfony-lock-doctrine-migrations-bundle)[ Packagist](https://packagist.org/packages/marein/symfony-lock-doctrine-migrations-bundle)[ RSS](/packages/marein-symfony-lock-doctrine-migrations-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (24)Versions (8)Used By (0)

symfony-lock-doctrine-migrations-bundle
=======================================

[](#symfony-lock-doctrine-migrations-bundle)

[![CI](https://github.com/marein/symfony-lock-doctrine-migrations-bundle/workflows/CI/badge.svg?branch=master)](https://github.com/marein/symfony-lock-doctrine-migrations-bundle/workflows/CI/badge.svg?branch=master)

**Table of contents**

- [Overview](#overview)
    - [How it works?](#how-it-works)
- [Installation and requirements](#installation-and-requirements)
- [Configuration](#configuration)
- [Public api](#public-api)

Overview
--------

[](#overview)

Perform concurrent doctrine migrations safely.

### How it works?

[](#how-it-works)

It hooks into Symfony's event system and listens for the `doctrine:migrations:migrate` command to be executed. The command must be executed with the `--conn` option so that this bundle knows which connection to use. If the platform of the selected connection is supported, the operation is performed inside a distributed lock.

Supported platforms:

- MySQL
- PostgreSQL

Installation and requirements
-----------------------------

[](#installation-and-requirements)

Add the bundle to your project.

```
composer require marein/symfony-lock-doctrine-migrations-bundle

```

Add the bundle in the kernel. This can be different for your setup.

```
public function registerBundles()
{
    return [
        // ...
        new \Marein\LockDoctrineMigrationsBundle\MareinLockDoctrineMigrationsBundle(),
        // ...
    ];
}
```

Configuration
-------------

[](#configuration)

This is an example of all configurations in yaml format.

```
marein_lock_doctrine_migrations:
    # Define a prefix for the name of the lock.
    #
    # Type: string
    # Default: migrate__
    lock_name_prefix: custom__
```

Public api
----------

[](#public-api)

Only the bundle configuration is part of the public api. Everything else can change and is not considered a breaking change. Please don't use classes or services directly.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance96

Actively maintained with recent releases

Popularity41

Moderate usage in the ecosystem

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Total

5

Last Release

7d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1128786?v=4)[Markus Reinhold](/maintainers/marein)[@marein](https://github.com/marein)

---

Top Contributors

[![marein](https://avatars.githubusercontent.com/u/1128786?v=4)](https://github.com/marein "marein (14 commits)")

---

Tags

doctrinedoctrine-migrationslockmigrationphpsymfonysymfony-bundle

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/marein-symfony-lock-doctrine-migrations-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/marein-symfony-lock-doctrine-migrations-bundle/health.svg)](https://phpackages.com/packages/marein-symfony-lock-doctrine-migrations-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[open-dxp/opendxp

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

9421.6k61](/packages/open-dxp-opendxp)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)

PHPackages © 2026

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