有没有办法安装模块,直接从没有php composer.phar的git-hub下载。因为我的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.
我的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"
}
}
答案 0 :(得分:0)
通常有三种方法可以安装Zend 2模块。
你可以跑:
https://github.com/ZF-Commons/ZfcAdmin.git
获取模块。但我不确定它是否会起作用,因为你可能有一个需要解决的依赖问题。我建议坚持使用作曲家。请发布您的整个composer.json文件,我确信问题可以解决。
答案 1 :(得分:0)
我无法重现您的错误。
我将您的composer.json
文件复制到一个空目录中并在那里执行composer install
。的工作原理。
composer require webino/webino-image-thumb:2.*
,然后下载该版本(2.0.0-RC1)就好了。