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.3(2y ago)7146.4k↓37.7%1[1 issues](https://github.com/marein/symfony-lock-doctrine-migrations-bundle/issues)[2 PRs](https://github.com/marein/symfony-lock-doctrine-migrations-bundle/pulls)MITPHPPHP ^8.0CI passing

Since Mar 17Pushed 5mo 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 1mo ago

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

43

—

FairBetter than 91% of packages

Maintenance46

Moderate activity, may be stable

Popularity40

Moderate usage in the ecosystem

Community8

Small or concentrated contributor base

Maturity62

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

Total

4

Last Release

819d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b17ed4df3d5bb432a50f2b19fd8a550aac0689846d29c516966e4e4e90f74c5?d=identicon)[marein](/maintainers/marein)

---

Top Contributors

[![marein](https://avatars.githubusercontent.com/u/1128786?v=4)](https://github.com/marein "marein (12 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

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[open-dxp/opendxp

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

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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