PHPackages                             sserbin/doctrine-migrations2-upgrade - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sserbin/doctrine-migrations2-upgrade

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sserbin/doctrine-migrations2-upgrade
====================================

Convert doctrine migrations files when upgrading from 1.x to 2.x

1.0(7y ago)110[5 PRs](https://github.com/sserbin/doctrine-migrations2-upgrade/pulls)MITPHPPHP ~7.1CI failing

Since Feb 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sserbin/doctrine-migrations2-upgrade)[ Packagist](https://packagist.org/packages/sserbin/doctrine-migrations2-upgrade)[ RSS](/packages/sserbin-doctrine-migrations2-upgrade/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (5)Versions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/8f642a1f25889af78fe55fabb96adb4d80c76ef8d57c49f6a883ac401501508b/68747470733a2f2f7472617669732d63692e636f6d2f7373657262696e2f646f637472696e652d6d6967726174696f6e73322d757067726164652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/sserbin/doctrine-migrations2-upgrade)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/311e2956413227801b0ce987ac0e9cdd726986b69d81764f62a14a4449a59463/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7373657262696e2f646f637472696e652d6d6967726174696f6e73322d757067726164652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sserbin/doctrine-migrations2-upgrade/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/d2fecdf627c620a6b7a022ca1b79589997bc69bff5f7467a8f9781d236798363/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7373657262696e2f646f637472696e652d6d6967726174696f6e73322d757067726164652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sserbin/doctrine-migrations2-upgrade/?branch=master)

Intro
=====

[](#intro)

Doctrine migrations 2.0 introduced a number of BC breaks forcing users migrating from 1.x to adjust all of their previous migrations. This package aims to automate upgrading from 1.x to 2.0 by doing automatic code adjustments for your migration files.

The following bc breaks are covered:

- exception class renames
- main namespace rename
- migration classes return type signature fix (for `up()`, `down()`, `preUp()`, `postUp()`, `preDown()`, `postDown()`, `getDescription()`, `isTransactional()`)

Installation
============

[](#installation)

```
composer require --dev sserbin/doctrine-migrations2-upgrade
# or globally
composer global require sserbin/doctrine-migrations2-upgrade

```

Usage
=====

[](#usage)

```
vendor/bin/migrations-upgrade path/to/migrations --dry-run
# or if installed globally (assuming global composer is in $PATH)
migrations-upgrade path/to/migrations --dry-run

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Unknown

Total

1

Last Release

2702d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/606e9a8f60c2eb84491ffef85e09e486d7a3dbb3376cc015bc52965c1f43448b?d=identicon)[sserbin](/maintainers/sserbin)

---

Top Contributors

[![sserbin](https://avatars.githubusercontent.com/u/1689792?v=4)](https://github.com/sserbin "sserbin (8 commits)")

---

Tags

doctrine-migrationsupgradedoctrine-migrations

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sserbin-doctrine-migrations2-upgrade/health.svg)

```
[![Health](https://phpackages.com/badges/sserbin-doctrine-migrations2-upgrade/health.svg)](https://phpackages.com/packages/sserbin-doctrine-migrations2-upgrade)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

5.0k4.9k](/packages/shlinkio-shlink)[akeneo/pim-community-dev

Akeneo PIM, the future of catalog management is open!

1.0k620.8k86](/packages/akeneo-pim-community-dev)[azuracast/azuracast

The AzuraCast self-hosted web radio station management suite.

3.9k27.8k](/packages/azuracast-azuracast)[oat-sa/tao-core

TAO core extension

66140.1k108](/packages/oat-sa-tao-core)[roave/psr-container-doctrine

Doctrine Factories for PSR-11 Containers

99803.8k21](/packages/roave-psr-container-doctrine)

PHPackages © 2026

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