alexssssss/phinx-bundle

alexssssss phinx bundle

Installs: 369

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:symfony-bundle

v1.1.4 2023-11-21 13:32 UTC

This package is auto-updated.

Last update: 2024-04-21 14:22:15 UTC


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/).

  1. Install Composer:

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

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

     php composer.phar install
    
  4. Add bundle to config/bundle.php

     return [
         ...
         \Alexssssss\PhinxBundle\PhinxBundle::class => ['all' => true],
         ...
     ];
    
  5. 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.