alexssssss / phinx-bundle
alexssssss phinx bundle
v1.1.6
2024-10-15 14:06 UTC
Requires
- php: >=7.1.0
- robmorgan/phinx: ^0.8|^0.9|^0.10|^0.11|^0.12|^0.13
README
Composer
BASED ON: https://github.com/mvrhov/mvrhovPhinxBundle
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 alexssssss/phinx-bundle
Install bundle:
php composer.phar install
Add bundle to
config/bundle.php
return [ ... \Alexssssss\PhinxBundle\PhinxBundle::class => ['all' => true], ... ];
Add bundle config to
app/config/packages/phinx.yml
Example:phinx: adapters: mysql: Phinx\Db\Adapter\MysqlAdapter environment: connection: adapter: mysql host: '%database_host%' port: '%database_port%' name: '%database_name%' user: '%database_user%' pass: '%database_password%' charset: UTF8
See
DependencyInjection/Configuration.php
for full list of available options.