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)210[5 PRs](https://github.com/sserbin/doctrine-migrations2-upgrade/pulls)MITPHPPHP ~7.1CI failing

Since Feb 2Pushed 5y 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 1w 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 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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

2747d 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.3k37.6k19](/packages/tempest-framework)[azuracast/azuracast

The AzuraCast self-hosted web radio station management suite.

4.0k27.9k](/packages/azuracast-azuracast)[oat-sa/tao-core

TAO core extension

65147.9k151](/packages/oat-sa-tao-core)[shlinkio/shlink

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

5.2k5.6k](/packages/shlinkio-shlink)[worksome/coding-style

Worksomes coding style

49826.1k69](/packages/worksome-coding-style)[ergebnis/rector-rules

Provides rules for rector/rector.

10264.7k55](/packages/ergebnis-rector-rules)

PHPackages © 2026

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