组成wyrihaximus / ratchet时出错(CakePHP插件)

时间:2014-10-16 09:58:06

标签: cakephp composer-php ratchet

我试图安装WyriHaximus' Ratchet-Plugin for CakePHP使用WebSockets。我在Cakes composer.json中添加了以下行:

 "require": {
        "php": ">=5.2.8",
        "ext-mcrypt": "*",
        "react/socket": "0.3.*|0.4.*",
        "wyrihaximus/ratchet": "dev-master"
    },
    "config": {
        "vendor-dir": "/app/Vendor/"
    },

当我跑步"作曲家更新"在CLI中,虽然我正在运行PHP 5.5,但它会引发以下错误:

Problem 1
  - Installation request for wyrihaximus/ratchet dev-master -> satisfiable by wyrihaximus/ratchet[dev-master].
  - wyrihaximus/ratchet dev-master requires php >=5.4.0 -> no matching package found.

原因是什么以及如何解决?

1 个答案:

答案 0 :(得分:0)

查看该输出,您没有PHP5.4或更高版本。您可以使用php -v检查该内容。