PHPackages                             covex-nn/migrations - 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. covex-nn/migrations

AbandonedLibrary[Database &amp; ORM](/categories/database)

covex-nn/migrations
===================

Database Schema migrations using Doctrine DBAL

0.9.0(12y ago)08241LGPLPHPPHP &gt;=5.3.2

Since Apr 25Pushed 12y ago1 watchersCompare

[ Source](https://github.com/covex-nn/migrations)[ Packagist](https://packagist.org/packages/covex-nn/migrations)[ Docs](http://www.doctrine-project.org)[ RSS](/packages/covex-nn-migrations/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (3)Used By (1)

Doctrine Database Migrations
============================

[](#doctrine-database-migrations)

Eric Clemmons' Modifications
----------------------------

[](#eric-clemmons-modifications)

The latest official PHAR had path issues for me, so I made a couple of modifications and made packaging a bit easier, especially when creating a custom PHAR for your own apps.

[Download `doctrine-migrations.phar` with custom Input/Output CLI support](http://github.com/downloads/ericclemmons/migrations/doctrine-migrations.phar)

### Modifications

[](#modifications)

- Added `DiffCommand` for migrations.
- Support for custom `ArgvInput` in CLI instance
- Support for custom `ConsoleOutput` in CLI instance

In the same way that Doctrine will attempt to load the return values from `migrations-db.php` as your connection parameters, you can have `migrations-input.php` return:

```
$input = new \Symfony\Component\Console\Input\ArgvInput;
... make some changes ...
return $input;

```

or have `migrations-output.php` return a customized `ConsoleOutput` with support for HTML tags in your SQL statements:

```
$output = new \Symfony\Component\Console\Output\ConsoleOutput;
$output->setStyle('p');
return $output;

```

This should give you the flexibility you need for customizing your input/output in the CLI.

### Building Your Phar

[](#building-your-phar)

Simply run `php package.php`, which will create the file: `build/doctrine-migrations.phar` for you. Done! :) This is a bit simpler than getting Phing/Ant going and running `phing build-migrations` and hoping the rest of the build dependencies work.

### Creating archive disabled by INI setting

[](#creating-archive-disabled-by-ini-setting)

If you receive an error that looks like:

```
creating archive "build/doctrine-migrations.phar" disabled by INI setting

```

This can be fixed by setting the following in your php.ini:

```
; http://php.net/phar.readonly
phar.readonly = Off

```

### Installing Dependencies

[](#installing-dependencies)

To install dependencies issue the following commands:

```
git submodule init
git submodule update

```

Official Documentation
----------------------

[](#official-documentation)

All available documentation can be found [here](http://docs.doctrine-project.org/projects/doctrine-migrations/en/latest/).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

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

Total

2

Last Release

4397d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd7f833537e59f3a0275ec881051e8d08ee9b658025f675f201228956da8a3e0?d=identicon)[covex-nn](/maintainers/covex-nn)

---

Top Contributors

[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (39 commits)")[![jwage](https://avatars.githubusercontent.com/u/97422?v=4)](https://github.com/jwage "jwage (32 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (23 commits)")[![denderello](https://avatars.githubusercontent.com/u/15523?v=4)](https://github.com/denderello "denderello (13 commits)")[![kriswallsmith](https://avatars.githubusercontent.com/u/33886?v=4)](https://github.com/kriswallsmith "kriswallsmith (6 commits)")[![simensen](https://avatars.githubusercontent.com/u/191200?v=4)](https://github.com/simensen "simensen (5 commits)")[![lsmith77](https://avatars.githubusercontent.com/u/300279?v=4)](https://github.com/lsmith77 "lsmith77 (5 commits)")[![tombevers](https://avatars.githubusercontent.com/u/145226?v=4)](https://github.com/tombevers "tombevers (4 commits)")[![pezia](https://avatars.githubusercontent.com/u/859419?v=4)](https://github.com/pezia "pezia (3 commits)")[![maxim-oleinik](https://avatars.githubusercontent.com/u/75860?v=4)](https://github.com/maxim-oleinik "maxim-oleinik (3 commits)")[![thanosp](https://avatars.githubusercontent.com/u/1217690?v=4)](https://github.com/thanosp "thanosp (3 commits)")[![aderuwe](https://avatars.githubusercontent.com/u/1125184?v=4)](https://github.com/aderuwe "aderuwe (2 commits)")[![covex-nn](https://avatars.githubusercontent.com/u/110878?v=4)](https://github.com/covex-nn "covex-nn (2 commits)")[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (2 commits)")[![kimhemsoe](https://avatars.githubusercontent.com/u/568787?v=4)](https://github.com/kimhemsoe "kimhemsoe (2 commits)")[![ornicar](https://avatars.githubusercontent.com/u/140370?v=4)](https://github.com/ornicar "ornicar (2 commits)")[![mpdude](https://avatars.githubusercontent.com/u/1202333?v=4)](https://github.com/mpdude "mpdude (1 commits)")[![mrtorrent](https://avatars.githubusercontent.com/u/60119?v=4)](https://github.com/mrtorrent "mrtorrent (1 commits)")[![tvlooy](https://avatars.githubusercontent.com/u/391674?v=4)](https://github.com/tvlooy "tvlooy (1 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")

---

Tags

databasemigrations

### Embed Badge

![Health badge](/badges/covex-nn-migrations/health.svg)

```
[![Health](https://phpackages.com/badges/covex-nn-migrations/health.svg)](https://phpackages.com/packages/covex-nn-migrations)
```

###  Alternatives

[doctrine/migrations

PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deploying changes to it. It is a very easy to use and a powerful tool.

4.8k204.8M438](/packages/doctrine-migrations)[robmorgan/phinx

Phinx makes it ridiculously easy to manage the database migrations for your PHP app.

4.5k46.2M403](/packages/robmorgan-phinx)[scienta/doctrine-json-functions

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

58523.9M35](/packages/scienta-doctrine-json-functions)[laravel-doctrine/migrations

Doctrine Migrations for Laravel

782.8M16](/packages/laravel-doctrine-migrations)[apinstein/mp

Migrations manager.

4039.5k1](/packages/apinstein-mp)[masom/lhm

Large Hadron Migrator for phinx

309.3k](/packages/masom-lhm)

PHPackages © 2026

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