mvrhov / phinx-bundle
mvrhov phinx bundle
Installs: 2 178
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 8
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.5
- robmorgan/phinx: ^0.8|^0.9
This package is auto-updated.
Last update: 2025-04-22 21:28:51 UTC
README
Composer
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 mvrhov/phinx-bundle
-
Install bundle:
php composer.phar install
-
Add bundle to
app/AppKernel.php
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { // ... if ('dev' === $this->getEnvironment()) { // ... $bundles[] = new \mvrhov\PhinxBundle\mvrhovPhinxBundle(); } }
-
Add bundle config to
app/config/config_dev.yml
Example:mvrhov_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.