Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Composer

The fastest way to install Phinx bundle is to add it to your project using Composer (http://getcomposer.org/).

  1. Install Composer:

    curl -sS https://getcomposer.org/installer | php
    
  2. Require Phinx bundle as a dependency using Composer:

    php composer.phar require mvrhov/phinx-bundle
    
  3. Install bundle:

    php composer.phar install
    
  4. Add bundle to app/AppKernel.php

        if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
            // ...
    
            if ('dev' === $this->getEnvironment()) {
                // ...
                $bundles[] = new \mvrhov\PhinxBundle\mvrhovPhinxBundle();
            }
        }
  5. 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.

About

No description or website provided.

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages