A free and open-source book on ZF3 for beginners


13.1. Installing Doctrine\Migrations Component

Doctrine provides a special component Doctrine\Migrations that you can use for implementing database migrations in your website. To install Doctrine\Migrations component, type the following command:

php composer.phar require doctrine/migrations

The command above will download and install the component files to the vendor directory and modify your composer.json file as follows:

{
    ...
    "require": {
        ...
        "doctrine/migrations": "^1.4",
        ...
    },
    ...
}

Top