在 Wamp 服务器上安装 Phinx

Installing Phinx on Wamp Server

我想在我的项目中使用 "Phinx" 使用 wamp server.I 能够使用 cmd 安装:

按照以下说明: http://docs.phinx.org/en/latest/install.html

composer require robmorgan/phinx 

但是当我运行命令时:

php vendor/bin/phinx init

输出为:

之后我的本地目录中没有安装 phinx.yml 文件

第一次安装包遇到问题..有没有sollutions/suggestions?

我使用命令解决了这个问题:

vendor/bin/phinx init

不是:

php vendor/bin/phinx init

也有同样的问题
php vendor/bin/phinx create MyFirstMigration 

并且您需要使用该命令

我遇到了同样的问题。解决者:

  vendor/bin/phinx init 

注意:如果前面没有 php,请注意,对于 windows,您需要使用不同的语法:

  vendor\bin\phinx init