繁体   English   中英

razorpay/omnipay-razorpay 套餐不可用

[英]Unavailability of package razorpay/omnipay-razorpay

我的 composer.json 文件如下:

{
    "name": "razorpay/razorpay",
    "description": "Razorpay PHP Client Library",
    "keywords": ["razorpay", "api", "php", "client"],
    "authors": [
        {
            "name": "Abhay Rana",
            "email": "nemo@razorpay.com",
            "homepage": "https://captnemo.in",
            "role": "Developer"
        },
        {
            "name": "Shashank Kumar",
            "email": "shashank@razorpay.com",
            "role": "Developer"
        }
    ],
    "support": {
        "email": "contact@razorpay.com",
        "issues": "https://github.com/Razorpay/razorpay-php/issues",
        "source": "https://github.com/Razorpay/razorpay-php"
    },
    "homepage": "https://docs.razorpay.com",
    "license": "MIT",
    "require": {
    "php": ">=5.3.0",
        "rmccue/requests": "^2.0",
        "ext-json": "*",
    "razorpay/omnipay-razorpay": "~2.0"
    },
    "require-dev": {
        "raveren/kint": "1.*",
        "phpunit/phpunit": "^9"
    },
    "autoload": {
        "psr-4": {
            "Razorpay\\Api\\": "src/",
            "Razorpay\\Tests\\": "tests/"
        },
        "files" : ["Deprecated.php"]
    }
}

我使用时的错误

$作曲家更新

如下:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires razorpay/omnipay-razorpay, it could not be found in any version, there may be a typo in the package name.
  Problem 2
    - phpunit/phpunit[9.0.0, ..., 9.2.6] require php ^7.3 -> your php version (5.6.40) does not satisfy that requirement.
    - phpunit/phpunit[9.3.0, ..., 9.3.8] require php ^7.3 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
    - phpunit/phpunit[9.3.9, ..., 9.5.20] require php >=7.3 -> your php version (5.6.40) does not satisfy that requirement.
    - Root composer.json requires phpunit/phpunit ^9 -> satisfiable by phpunit/phpunit[9.0.0, ..., 9.5.20].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

为了澄清目的,我在哪里更新

{
    "require": {
        "`razorpay/omnipay-razorpay`": "~2.0"
    }
}

根据https://github.com/razorpay/omnipay-razorpay中给出的说明,我们是否必须在 razorpay-php 文件中提供的 composer.json 文件中更新它( https://github.com/razorpay/razorpay-php /releases/ ) 或创建一个新的 composer.json 文件并添加基于 composer JSON 模式的信息。

您可以在https://packagist.org上检查所有无需任何自定义设置即可安装的软件包。 在该站点上搜索razorpay/omnipay-razorpay时,它没有列出此包。 您应该就此联系该软件包的维护者,因为他们需要在 Packagist 上发布该软件包。 如果它在那里不可用,但在任何其他包存储库中,他们需要更新有关此的文档。


无论如何,他们的软件包多年来没有看到任何实质性的更新。 我会假设他们这边的开发已经结束,你应该检查任何第三方连接器

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM