简体   繁体   English

razorpay/omnipay-razorpay 套餐不可用

[英]Unavailability of package razorpay/omnipay-razorpay

My composer.json file is as follows:我的 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"]
    }
}

the error when I use我使用时的错误

$composer update $作曲家更新

is as follows:如下:

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

For clarification purpose where do I update为了澄清目的,我在哪里更新

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

as per the instruction given in https://github.com/razorpay/omnipay-razorpay Do we have to update it in composer.json file available in razorpay-php file ( https://github.com/razorpay/razorpay-php/releases/ ) or create a new composer.json file and add information based on composer JSON schema.根据https://github.com/razorpay/omnipay-razorpay中给出的说明,我们是否必须在 razorpay-php 文件中提供的 composer.json 文件中更新它( https://github.com/razorpay/razorpay-php /releases/ ) 或创建一个新的 composer.json 文件并添加基于 composer JSON 模式的信息。

You can inspect all packages that you can install without any custom settings on https://packagist.org .您可以在https://packagist.org上检查所有无需任何自定义设置即可安装的软件包。 When searching for razorpay/omnipay-razorpay on that site, it does not list this package.在该站点上搜索razorpay/omnipay-razorpay时,它没有列出此包。 You should contact the maintainers of that package about this, as they need to publish the package on Packagist.您应该就此联系该软件包的维护者,因为他们需要在 Packagist 上发布该软件包。 If it should not be available there, but in any other package repository, they need to update their documentation about this.如果它在那里不可用,但在任何其他包存储库中,他们需要更新有关此的文档。


Anyways, their package has not seen any substantial update since years.无论如何,他们的软件包多年来没有看到任何实质性的更新。 I would assume that development on their side has ended, and you should check for any third-party connector我会假设他们这边的开发已经结束,你应该检查任何第三方连接器

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

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