Zend framework2 从git zendframework 2安装模块

Zend framework2 从git zendframework 2安装模块,zend-framework2,composer-php,Zend Framework2,Composer Php,有没有办法直接从git hub下载模块,而不使用php composer.phar。因为我的php编写器不工作 这就是错误所在 $ php composer.phar require webino/webino-image-thumb:2.* ./composer.json has been updated Loading composer repositories with package information Ignoring unknown parameter "server role"

有没有办法直接从git hub下载模块,而不使用php composer.phar。因为我的php编写器不工作

这就是错误所在

$ php composer.phar require webino/webino-image-thumb:2.*
./composer.json has been updated
Loading composer repositories with package information
Ignoring unknown parameter "server role"
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

   Problem 1
     - Can only install one of: zf-commons/zfc-admin[v0.1.0, dev-master].
     - Can only install one of: zf-commons/zfc-admin[v0.1.0, dev-master].
     - Installation request for zf-commons/zfc-admin 0.1.0 -> satisfiable by zf-commons/zfc-admin[v0.1.0].
     - Installation request for zf-commons/zfc-admin == 9999999-dev -> satisfiable by zf-commons/zfc-admin[dev-master].


 Installation failed, reverting ./composer.json to its original content.
My composer.json如下所示:

{ 
    "name": "zendframework/skeleton-application", 
    "description": "Skeleton Application for ZF2", 
    "license": "BSD-3-Clause", 
    "keywords": [ "framework", "zf2" ], 
    "minimum-stability": "dev", 
    "homepage": "framework.zend.com/", 
    "require": { 
        "php": ">=5.3.3", 
        "zendframework/zendframework": "2.2.0", 
        "webino/webino-image-thumb": "1.*", 
        "zf-commons/zfc-admin":"0.1.0"
    } 
}

通常有三种方法可以安装Zend 2模块

  • 通过文件系统
  • 吉特
  • 作曲家
您可以直接运行:

https://github.com/ZF-Commons/ZfcAdmin.git

获取模块。但我不确定它是否会起作用,因为您可能有一个需要解决的依赖性问题。我建议你还是坚持作曲。请发布您的整个composer.json文件,我相信这个问题可以解决。

我无法重现您的错误

我将您的
composer.json
文件复制到一个空目录中,并在那里执行
composer安装。工作


然后我发布了
composer require webino/webino image thumb:2.*
,它可以很好地下载该版本(2.0.0-RC1)。

如果您有~/.composer/config.json{“name”:“zendframework/skeleton application”,“description”:“ZF2的骨架应用程序”,“许可证”:“BSD-3-Clause”,“关键字”:[“框架”,“zf2”],“最低稳定性”:“开发”,“主页”:“要求”:{“php”:“>=5.3.3”,“zendframework/zendframework”:“2.2.0”,“webino/webino图像拇指”:“1.*”,“zf commons/zfc管理”:“0.1.0”}你如何设置你的评论和帖子的风格如果你在问题中用4个空格缩进发布JSON,那么应该突出显示语法,并在代码块中呈现。他有与依赖项版本冲突的包