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

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

comporu/migrations
==================

Database Schema migrations using Doctrine DBAL

5.3(11y ago)0168LGPL-2.1PHPPHP &gt;=5.3.2

Since Oct 5Pushed 10y ago2 watchersCompare

[ Source](https://github.com/comporu/migrations)[ Packagist](https://packagist.org/packages/comporu/migrations)[ Docs](http://www.doctrine-project.org)[ RSS](/packages/comporu-migrations/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (9)Used By (0)

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

[](#doctrine-database-migrations)

Status
------

[](#status)

[![Build Status](https://camo.githubusercontent.com/11542746bfd880342d2048e54d12788b028002930ee678464591a66103f5d447/68747470733a2f2f7472617669732d63692e6f72672f646f637472696e652f6d6967726174696f6e732e737667)](https://travis-ci.org/doctrine/migrations)[![Dependency Status](https://camo.githubusercontent.com/db18e9f6ec3215b4b8ba0b1d4223df54577bc6a4c1b2bfde73c7e80626fe9291/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f646f637472696e653a6d6967726174696f6e732f62616467652e737667)](https://www.versioneye.com/php/doctrine:migrations/)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ca5104dbf824c0d7c8074e0305e0e42426a9df53a643935154f9fc4b80cf6608/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646f637472696e652f6d6967726174696f6e732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/doctrine/migrations/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/cb35093d3457788c19ff37236ec358d0fc6c1c03de8208a0376bae5660d67572/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646f637472696e652f6d6967726174696f6e732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/doctrine/migrations/?branch=master)

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

[](#official-documentation)

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

The repository containing the documentation is [there](https://github.com/doctrine/migrations-documentation).

Working with Doctrine Migrations
--------------------------------

[](#working-with-doctrine-migrations)

### Using the integration of your framework

[](#using-the-integration-of-your-framework)

- symfony 2 [doctrine/doctrine-migrations-bundle](https://packagist.org/packages/doctrine/doctrine-migrations-bundle)
- ZF2 [doctrine/doctrine-orm-module](https://packagist.org/packages/doctrine/doctrine-orm-module)
- laravel [mitchellvanw/laravel-doctrine](https://packagist.org/packages/mitchellvanw/laravel-doctrine)
- Silex [kurl/silex-doctrine-migrations-provider](https://packagist.org/packages/kurl/silex-doctrine-migrations-provider)
- nette [zenify/doctrine-migrations](https://packagist.org/packages/zenify/doctrine-migrations)
- others...

### Using composer

[](#using-composer)

`composer require doctrine/migrations`

### Downloading the latest phar release

[](#downloading-the-latest-phar-release)

You can download the [doctrine migrations phar](https://github.com/doctrine/migrations/releases) directly on the release page

### Building Your own Phar

[](#building-your-own-phar)

Make sure Composer and all necessary dependencies are installed:

```
curl -s https://getcomposer.org/installer | php
php composer.phar install --dev
```

Make sure that the Box project is installed:

```
curl -s http://box-project.org/installer.php | php
```

Build the PHAR archive:

```
php box.phar build
```

The `doctrine-migrations.phar` archive is built in the `build` directory.

#### 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 run a composer update:

`composer update`

symfony 2.3 users
-----------------

[](#symfony-23-users)

Doctrine migration need the doctrine/orm 2.4, you need to [update your composer.json](https://github.com/symfony/symfony-standard/blob/v2.3.28/composer.json#L12) to the last version of it for symfony 2.3.

That version is compatible with the doctrine/orm 2.4 and there are [very little upgrade needed](https://github.com/doctrine/doctrine2/blob/master/UPGRADE.md#upgrade-to-24).

Running the unit tests
----------------------

[](#running-the-unit-tests)

To run the tests, you need the sqlite extension for php. On Unix-like systems, install:

- php5-sqlite

On Windows, enable the extension by uncommenting the following lines in php.ini

```
extension = php_pdo_sqlite.dll
extension = php_sqlite3.dll
extension_dir = ext

```

Running the tests from the project root:

```
./vendor/bin/phpunit

```

On Windows run phpunit from the full path

```
php vendor/phpunit/phpunit/phpunit

```

This appears to be some bug.

Happy testing :-)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 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 ~200 days

Recently: every ~133 days

Total

6

Last Release

3965d ago

Major Versions

v1.0.0-alpha3 → 5.32015-05-04

PHP version history (2 changes)v1.0-ALPHA1PHP &gt;=5.3.2

v1.0.0-rc1PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/272358b2196cec971cad7598b5b4149748d8fe6bc1ebe22620af42e41bc883df?d=identicon)[comporu](/maintainers/comporu)

---

Top Contributors

[![mikeSimonson](https://avatars.githubusercontent.com/u/907613?v=4)](https://github.com/mikeSimonson "mikeSimonson (152 commits)")[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (39 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (35 commits)")[![jwage](https://avatars.githubusercontent.com/u/97422?v=4)](https://github.com/jwage "jwage (33 commits)")[![chrisguitarguy](https://avatars.githubusercontent.com/u/1010392?v=4)](https://github.com/chrisguitarguy "chrisguitarguy (19 commits)")[![denderello](https://avatars.githubusercontent.com/u/15523?v=4)](https://github.com/denderello "denderello (13 commits)")[![rjmunro](https://avatars.githubusercontent.com/u/108641?v=4)](https://github.com/rjmunro "rjmunro (10 commits)")[![aivus](https://avatars.githubusercontent.com/u/1021703?v=4)](https://github.com/aivus "aivus (8 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)")[![gsomoza](https://avatars.githubusercontent.com/u/106219?v=4)](https://github.com/gsomoza "gsomoza (4 commits)")[![neeckeloo](https://avatars.githubusercontent.com/u/1768645?v=4)](https://github.com/neeckeloo "neeckeloo (4 commits)")[![louiscytc](https://avatars.githubusercontent.com/u/3658013?v=4)](https://github.com/louiscytc "louiscytc (3 commits)")[![pezia](https://avatars.githubusercontent.com/u/859419?v=4)](https://github.com/pezia "pezia (3 commits)")[![thanosp](https://avatars.githubusercontent.com/u/1217690?v=4)](https://github.com/thanosp "thanosp (3 commits)")[![maxim-oleinik](https://avatars.githubusercontent.com/u/75860?v=4)](https://github.com/maxim-oleinik "maxim-oleinik (3 commits)")[![aderuwe](https://avatars.githubusercontent.com/u/1125184?v=4)](https://github.com/aderuwe "aderuwe (2 commits)")[![ornicar](https://avatars.githubusercontent.com/u/140370?v=4)](https://github.com/ornicar "ornicar (2 commits)")

---

Tags

databasemigrations

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/comporu-migrations/health.svg)](https://phpackages.com/packages/comporu-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.8M440](/packages/doctrine-migrations)[robmorgan/phinx

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

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

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

58523.9M36](/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)
