title: Composer fails to install laravel/socialite 2.0
body: <p><strong>composer require laravel/socialite ^2.0</strong></p>
  <p>is failing with below error:</p>
  <pre><code>Your requirements could not be resolved to an installable set of packages.
  
    Problem 1
      - Installation request for laravel/socialite 2.0 -&gt; satisfiable by laravel/socialite[v2.0.0].
      - Conclusion: remove guzzlehttp/guzzle 6.2.2
      - Conclusion: don't install guzzlehttp/guzzle 6.2.2
      - laravel/socialite v2.0.0 requires guzzlehttp/guzzle ~4.0 -&gt; satisfiable by guzzlehttp/guzzle[4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4].
      - Can only install one of: guzzlehttp/guzzle[4.0.0, 6.2.2].
      ...
      - Can only install one of: guzzlehttp/guzzle[4.2.4, 6.2.2].
      - Installation request for guzzlehttp/guzzle (locked at 6.2.2) -&gt; satisfiable by guzzlehttp/guzzle[6.2.2].
  
  
  Installation failed, reverting ./composer.json to its original content.
  </code></pre>
  <p>Laravel version is 5.3.22</p>
  <p>PHP version is 7.0.10</p>
  <p>The <a href="https://github.com/laravel/socialite/blob/2.0/composer.json" rel="nofollow noreferrer">composer.json of socialite2.0</a> on github shows the dependency as guzzlehttp 5.0/ 6.0.  Why's my install looking for guzzlehttp 4.0?</p>
  <p><strong>EDIT-1:</strong></p>
  <p>I tried to force guzzlehttp 4.2.4 by adding it in composer.json require-dev.</p>
  <p>However, I received following error:</p>
  <pre><code>  Problem 1
      - The requested package guzzlehttp/guzzle (locked at 6.2.2, required as 4.2.4) is satisfiable by guzzlehttp/guzzle[6.2.2] but these conflict with your requirements or minimum-stability.
    Problem 2
      - aws/aws-sdk-php 3.19.23 requires guzzlehttp/guzzle ^5.3.1|^6.2.1 -&gt; satisfiable by guzzlehttp/guzzle[5.3.1, 5.3.2, 5.3.x-dev, 6.2.1, 6.2.2, 6.2.3, 6.3.0, 6.2.x-dev] but these conflict with your requirements or minimum-stability.
      - aws/aws-sdk-php 3.19.23 requires guzzlehttp/guzzle ^5.3.1|^6.2.1 -&gt; satisfiable by guzzlehttp/guzzle[5.3.1, 5.3.2, 5.3.x-dev, 6.2.1, 6.2.2, 6.2.3, 6.3.0, 6.2.x-dev] but these conflict with your requirements or minimum-stability.
      - aws/aws-sdk-php 3.19.23 requires guzzlehttp/guzzle ^5.3.1|^6.2.1 -&gt; satisfiable by guzzlehttp/guzzle[5.3.1, 5.3.2, 5.3.x-dev, 6.2.1, 6.2.2, 6.2.3, 6.3.0, 6.2.x-dev] but these conflict with your requirements or minimum-stability.
      - Installation request for aws/aws-sdk-php (locked at 3.19.23) -&gt; satisfiable by aws/aws-sdk-php[3.19.23].
  </code></pre>
  <p>Apparently, aws-sdk-php requires guzzlehttp 5.3/ 6.2.  Laravel 5.3 is not compatible with socialite 3.0.  Socialite 2.0 is not compatible with guzzlehttp 5.3/ 6.2.</p>
  <p>How to resolve this?</p>
  <p>TIA</p>
  <p><strong>EDIT-2:</strong></p>
  <p>my composer.json has below content:</p>
  <pre><code>{
  &quot;name&quot;: &quot;laravel/laravel&quot;,
  &quot;description&quot;: &quot;The Laravel Framework.&quot;,
  &quot;keywords&quot;: [&quot;framework&quot;, &quot;laravel&quot;],
  &quot;license&quot;: &quot;MIT&quot;,
  &quot;type&quot;: &quot;project&quot;,
  &quot;require&quot;: {
      &quot;php&quot;: &quot;&gt;=5.6.4&quot;,
      &quot;laravel/framework&quot;: &quot;5.3.*&quot;,
      &quot;doctrine/dbal&quot;: &quot;^2.5&quot;,
      &quot;aws/aws-sdk-php-laravel&quot;: &quot;~3.0&quot;
  },
  &quot;require-dev&quot;: {
      &quot;fzaninotto/faker&quot;: &quot;~1.4&quot;,
      &quot;mockery/mockery&quot;: &quot;0.9.*&quot;,
      &quot;phpunit/phpunit&quot;: &quot;~5.0&quot;,
      &quot;symfony/css-selector&quot;: &quot;3.1.*&quot;,
      &quot;symfony/dom-crawler&quot;: &quot;3.1.*&quot;
  },
  &quot;autoload&quot;: {
      &quot;classmap&quot;: [
          &quot;database&quot;
      ],
      &quot;psr-4&quot;: {
          &quot;App\\&quot;: &quot;app/&quot;
      }
  },
  &quot;autoload-dev&quot;: {
      &quot;classmap&quot;: [
          &quot;tests/TestCase.php&quot;
      ]
  },
  &quot;scripts&quot;: {
      &quot;post-root-package-install&quot;: [
          &quot;php -r \&quot;file_exists('.env') || copy('.env.example', '.env');\&quot;&quot;
      ],
      &quot;post-create-project-cmd&quot;: [
          &quot;php artisan key:generate&quot;
      ],
      &quot;post-install-cmd&quot;: [
          &quot;Illuminate\\Foundation\\ComposerScripts::postInstall&quot;,
          &quot;php artisan optimize&quot;
      ],
      &quot;post-update-cmd&quot;: [
          &quot;Illuminate\\Foundation\\ComposerScripts::postUpdate&quot;,
          &quot;php artisan optimize&quot;
      ]
  },
  &quot;config&quot;: {
      &quot;preferred-install&quot;: &quot;dist&quot;
  }
  </code></pre>
  <p>}</p>