Jabaa
Jabaa

Reputation: 1753

Laravel 5.3 socialite installation error

I am trying to install laravel socialite plugin using this command

composer require laravel/socialite

But i will get the following error

Your requirements could not be resolved to an installable set of packages

Problem 1 - laravel/socialite v3.0.0 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0]. - laravel/socialite v3.0.2 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0]. - laravel/socialite v3.0.3 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0]. - Conclusion: don't install illuminate/http v5.4.0 - Installation request for laravel/socialite ^3.0 -> satisfiable by laravel/socialite[v3.0.0, v3.0.2, v3.0.3].

Laravel version: 5.3

php version 7.0.13

Upvotes: 3

Views: 3990

Answers (4)

Bbxxest Olumese
Bbxxest Olumese

Reputation: 11

composer require laravel/socialite "~3.2.0"

Upvotes: 0

Huy Phan
Huy Phan

Reputation: 81

May be this would help

composer require laravel/socialite "^3.2.0"

https://laravel.com/docs/5.6/socialite#installation

Upvotes: 0

Kundan roy
Kundan roy

Reputation: 3132

Solution :

For laravel 5.3

Run following command and this will work for you.

composer require laravel/socialite ^2.0

Upvotes: 0

Parth Vora
Parth Vora

Reputation: 4114

I think the issue is that you are trying to install latest socialite package for the Laravel 5.3 which needs at least Laravel 5.4.

Problem 1 - laravel/socialite v3.0.0 requires illuminate/http ~5.4 -> satisfiable by 

Try to install on Laravel 5.4.

Check this:

https://github.com/laravel/socialite/blob/3.0/composer.json

"require": {
        "php": ">=5.4.0",
        "illuminate/contracts": "~5.4",
        "illuminate/http": "~5.4",
        "illuminate/support": "~5.4",
        "guzzlehttp/guzzle": "~6.0",
        "league/oauth1-client": "~1.0"
    },

It requires 5.4

OR

As an alternative you can use the older version of socialite which is compatible with Laravel 5.3 like:

composer require laravel/socialite 2.0

Upvotes: 5

Related Questions