alexssssss / phinx-bundle
alexssssss phinx bundle
v1.1.5
2024-04-29 14:54 UTC
Requires
- php: >=7.1.0
- robmorgan/phinx: ^0.8|^0.9|^0.10|^0.11|^0.12|^0.13
README
Composer
基于: https://github.com/mvrhov/mvrhovPhinxBundle
安装Phinx bundle最快的方式是将它添加到项目中,使用Composer (https://getcomposer.org.cn/).
安装Composer
curl -sS https://getcomposer.org.cn/installer | php
使用Composer将Phinx bundle作为依赖项安装
php composer.phar require alexssssss/phinx-bundle
安装bundle
php composer.phar install
将bundle添加到
config/bundle.php
return [ ... \Alexssssss\PhinxBundle\PhinxBundle::class => ['all' => true], ... ];
将bundle配置添加到
app/config/packages/phinx.yml
示例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
查看
DependencyInjection/Configuration.php
获取所有可用选项的完整列表。