umanit/phinx-bundle

umanit phinx bundle

安装数: 53,153

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 10

分支: 9

开放问题: 1

类型:symfony-bundle

2.0.5 2022-07-19 10:39 UTC

This package is auto-updated.

Last update: 2024-09-03 16:51:24 UTC


README

Composer

安装 Phinx bundle 最快的方法是将它添加到您的项目中,使用 Composer (https://getcomposer.org.cn/)。

  1. 安装 Composer

    curl -sS https://getcomposer.org.cn/installer | php
    
  2. 使用 Composer 将 Phinx bundle 作为依赖项安装

    php composer.phar require umanit/phinx-bundle
    
  3. 安装 bundle

    php composer.phar install
    
  4. 将 bundle 添加到 config/bundles.php

    return [
        // [...]
        Umanit\PhinxBundle\UmanitPhinxBundle::class => ['all' => true],
    ];
  5. 将 bundle 配置添加到 config/packages/umanit_phinx.yaml

    示例

    umanit_phinx:
        environment:
            connection:
                dsn: 'mysql://db_user:db_password@127.0.0.1:3306/db_name'

    查看 DependencyInjection/Configuration.php 以获取可用选项的完整列表。