我在通过 composer 将此模块安装到 ZF2 时遇到问题。我已经编辑了 zend 框架 2 附带的 composer.json 文件,但是当我运行命令 php composer.phar install 时它不会安装。
这是我的 composer.json 文件的样子:
"name": "speckcommerce/speck-paypal",
"description": "A generic module for adding PayPal support to a ZF2 application.",
"type": "library",
"keywords": [
"zf2"
],
"homepage": "http://github.com/speckcommerce/SpeckPaypal",
"authors": [
{
"name": "Stephen Rhoades",
"email": "steve@stephenrhoades.com",
"homepage": "http://www.stephenrhoades.com"
}
],
"require": {
"php": ">=5.4",
"zendframework/zendframework": "2.*"
},
"autoload": {
"psr-0": {
"SpeckPaypal": "src/"
},
"classmap": [
"./"
]
}
可以在以下位置找到源:https ://github.com/speckcommerce/SpeckPaypal
谢谢!