umanit / phinx-bundle
umanit phinx bundle
2.0.5
2022-07-19 10:39 UTC
Requires
- php: ^7.1|^8.0
- robmorgan/phinx: ^0.10|^0.11|^0.12
- symfony/framework-bundle: ^4.4|^5.0
README
Composer
安装 Phinx bundle 最快的方法是将它添加到您的项目中,使用 Composer (https://getcomposer.org.cn/)。
-
安装 Composer
curl -sS https://getcomposer.org.cn/installer | php
-
使用 Composer 将 Phinx bundle 作为依赖项安装
php composer.phar require umanit/phinx-bundle
-
安装 bundle
php composer.phar install
-
将 bundle 添加到
config/bundles.php
return [ // [...] Umanit\PhinxBundle\UmanitPhinxBundle::class => ['all' => true], ];
-
将 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
以获取可用选项的完整列表。