PHPackages                             imt/doctrine-migrations-multi - 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. imt/doctrine-migrations-multi

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

imt/doctrine-migrations-multi
=============================

This repository provides a simple script that adds the ability to use Doctrine Migrations with more than one (multiple) connection (database).

0.9.0(9y ago)5755[1 issues](https://github.com/IgorTimoshenko/doctrine-migrations-multi/issues)MITPHPPHP ^5.5|^7.0

Since Dec 28Pushed 9y ago2 watchersCompare

[ Source](https://github.com/IgorTimoshenko/doctrine-migrations-multi)[ Packagist](https://packagist.org/packages/imt/doctrine-migrations-multi)[ Docs](http://github.com/IgorTimoshenko/doctrine-migrations-multi)[ RSS](/packages/imt-doctrine-migrations-multi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

doctrine-migrations-multi
=========================

[](#doctrine-migrations-multi)

Overview
--------

[](#overview)

This repository provides a simple script that adds the ability to use [Doctrine Migrations](https://github.com/doctrine/migrations) with more than one (multiple) connection (database).

Installation
------------

[](#installation)

### 1. Using Composer (recommended)

[](#1-using-composer-recommended)

To install `doctrine-migrations-multi` with [Composer](http://getcomposer.org) just add the following to your `composer.json` file:

```
{
    "require": {
        "imt/doctrine-migrations-multi": "0.9.*"
    }
}
```

Then, you can install the new dependencies by running Composer's update command from the directory where your `composer.json` file is located:

```
$ php composer.phar update imt/doctrine-migrations-multi
```

Now, Composer will automatically download all required files, and install them for you.

Usage
-----

[](#usage)

To start using `doctrine-migrations-multi` create the `migrations-db-multi.php` file that returns an array of connections:

migrations-db-multi-example.php

```
