【问题标题】:How to integrate Paypal payment gateway in Laravel ? (i got the errors)如何在 Laravel 中集成 Paypal 支付网关? (我得到了错误)
【发布时间】:2019-07-26 21:48:34
【问题描述】:

我得到了错误,但我已经升级了我的 PHP 版本,但我仍然得到相同的结果。

Problem 1
    - This package requires php ^7.1.3 but your PHP version (7.0.33) does not satisfy that requirement.
Problem 2
    - doctrine/inflector v1.3.0 requires php ^7.1 -> your PHP version (7.0.33) does not satisfy that requirement.
    - doctrine/inflector v1.3.0 requires php ^7.1 -> your PHP version (7.0.33) does not satisfy that requirement.
    - doctrine/inflector v1.3.0 requires php ^7.1 -> your PHP version (7.0.33) does not satisfy that requirement.
    - Installation request for doctrine/inflector (locked at v1.3.0) -> satisfiable by doctrine/inflector[v1.3.0].

【问题讨论】:

  • 只需比较php -v 结果和<?php phpinfo() ?> 结果,您可能会发现更多信息。看起来你在命令行下的 php(来自路径变量)和服务器版本不同(在 web 服务器 conf 下指定)。

标签: laravel paypal payment php-7


【解决方案1】:

这个包(doctrine/inflector)需要 php: ^7.1 和你的 PHP 版本(7.0.33),所以这就是你出错的原因,

更新您的 php 版本,用于在 XAMPP for Windows 中升级您的 PHP:LINK

【讨论】:

  • PHP 7.2.15 (cli) (built: Feb 26 2019 16:24:46) (NTS) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies 我已经升级了 php 版本,但我仍然收到该错误
【解决方案2】:

您可以选择在 composer.json 文件中将 laravel 降级到 5.5 版本(最简单的方法)或将您的 php 升级到 7.1.3 或更高版本

【讨论】:

猜你喜欢
  • 2015-12-30
  • 2015-06-24
  • 2014-06-03
  • 2018-07-12
  • 2021-06-04
  • 2016-01-04
  • 2019-06-27
  • 1970-01-01
  • 2014-05-08
相关资源
最近更新 更多