The fastest way to install Phinx bundle is to add it to your project using Composer (http://getcomposer.org/).
-
Install Composer:
curl -sS https://getcomposer.org/installer | php -
Require Phinx bundle as a dependency using Composer:
php composer.phar require umanit/phinx-bundle -
Install bundle:
php composer.phar install -
Add bundle to
config/bundles.phpreturn [ // [...] Umanit\PhinxBundle\UmanitPhinxBundle::class => ['all' => true], ];
-
Add bundle config to
config/packages/umanit_phinx.yamlExample:
umanit_phinx: environment: connection: dsn: 'mysql://db_user:db_password@127.0.0.1:3306/db_name'
See
DependencyInjection/Configuration.phpfor full list of available options.