douba6365 2017-03-14 01:22 采纳率: 100%
浏览 47
已采纳

PHP - 安装OAuth时出错

I already check out some other posts but none help me.

The error is:

<br />
<b>Fatal error</b>:  Class 'League\OAuth2\Client\Provider\Google' not found in
<b>/dir/libs/vendor/phpmailer/phpmailer/class.phpmaileroauthgoogle.php</b> on line
<b>54</b>
<br />

I also read that I had to install League with composer. This is my composer.json,

 {
     "require": {
         "php": ">=5.5.0",
         "slim/slim": "^3.1",
         "slim/php-view": "^2.0",       
         "phpmailer/phpmailer": "~5.2",
         "league/oauth2-client": "^2.2"
     }
 }
  • 写回答

1条回答 默认 最新

  • du13520157325 2017-03-15 16:39
    关注

    The Google provider is not part of the league/oauth2-client package. You also need to install the league/oauth2-google package.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?