Search code examples
phplaravellaravel-5.3laravel-socialite

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


Solution

  • 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