Dex Sebas
Dex Sebas

Reputation: 247

PHP - Error installing 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"
     }
 }

Upvotes: 0

Views: 639

Answers (1)

xabbuh
xabbuh

Reputation: 5881

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

Upvotes: 1

Related Questions