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",
...
},
...
}