无法找到Omnipay sagepay 2.0软件包

时间:2014-01-07 06:57:18

标签: php omnipay

我想将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"
        }
    }
}

1 个答案:

答案 0 :(得分:2)

您的composer.json文件正在定义一个名为omnipay/sagepay的新程序包,这显然不是您想要的。

根据安装说明,您的所有composer.json文件都应包含:

{
    "require": {
        "omnipay/sagepay": "~2.0"
    }
}

然后运行composer update以下载依赖项。