我想将omnipay / Sagepay支付方式与myproject..i安装的供应商文件夹成功整合..但是无法更新Sagepay包..如果我更新有这样的show terminal error“ 问题1 - 无法找到所请求的包裹omnipay / sagepay 1.0.0。
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your min
imum-stability setting"
我选择安装作曲家天气c:/ bin(或)我的项目文件夹的路径为c:/ xampp / htdocs / myproject
My Composer file is
{
"name": "omnipay/sagepay",
"type": "library",
"description": "Sage Pay driver for the Omnipay PHP payment processing library",
"keywords": [
"gateway",
"merchant",
"omnipay",
"pay",
"payment",
"purchase",
"sage pay",
"sagepay"
],
"homepage": "https://github.com/omnipay/sagepay",
"license": "MIT",
"authors": [
{
"name": "Adrian Macneil",
"email": "adrian@adrianmacneil.com"
},
{
"name": "Omnipay Contributors",
"homepage": "https://github.com/omnipay/sagepay/contributors"
}
],
"autoload": {
"psr-0": { "Omnipay\\SagePay\\" : "src/" }
},
"require": {
"omnipay/common": "~2.0",
"omnipay/sagepay": "~2.0"
},
"require-dev": {
"omnipay/tests": "~2.0"
},
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
}
}
}
答案 0 :(得分:2)
您的composer.json
文件正在定义一个名为omnipay/sagepay
的新程序包,这显然不是您想要的。
根据安装说明,您的所有composer.json
文件都应包含:
{
"require": {
"omnipay/sagepay": "~2.0"
}
}
然后运行composer update
以下载依赖项。