php - 在 Wamp 服务器上安装 Phinx

标签 php windows cmd wamp phinx

我想在我的项目中使用 wamp 服务器使用“Phinx”。我能够使用 cmd 安装:

以下说明位于: http://docs.phinx.org/en/latest/install.html

composer require robmorgan/phinx 

但是当我运行命令时:

php vendor/bin/phinx init

输出为:

enter image description here

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

这是第一次在安装软件包时遇到问题。有什么解决方案/建议吗?

最佳答案

我使用以下命令解决了问题:

vendor/bin/phinx init

不是:

php vendor/bin/phinx init

也有同样的问题

php vendor/bin/phinx create MyFirstMigration 

你需要使用该命令

enter image description here

关于php - 在 Wamp 服务器上安装 Phinx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34401051/

相关文章:

php - 使用 AJAX 登录 Facebook 获取访问 token

Windows 上的 PHP proc_open 问题

Windows shell命令获取当前目录的完整路径?

python - 将特殊字符传递给 cmd.exe 中的 python 脚本

php - 从 PHP 更改 SQL 查询

php - 无法匹配mysql中的字符串

php - MySQL 查询返回无效资源但没有错误

linux - 磁盘性能基准测试(Xen 上的 Windows 和 Linux)

windows - 通过 VMWARE 路由 VPN(Macosx - Windows)

git - 如何完成 git 提交?