簡體   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