title: Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted
body: <p>I am trying to add HWIOAuthBundle to my project by running the below command.</p>
  
  <pre><code>composer require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle
  </code></pre>
  
  <p>HWIOAuthBundle github: <a href="https://github.com/hwi/HWIOAuthBundle" rel="noreferrer">https://github.com/hwi/HWIOAuthBundle</a></p>
  
  <p>When I try to run composer require I am getting the out of memory error.</p>
  
  <blockquote>
    <p>Using version ^0.6.0@dev for hwi/oauth-bundle Using version ^1.2@dev
    for php-http/guzzle6-adapter Using version ^1.10@dev for
    php-http/httplug-bundle ./composer.json has been updated Loading
    composer repositories with package information Updating dependencies
    (including require-dev)</p>
    
    <p>PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted
    (tried to allocate 67108864 bytes) in
    phar:///usr/local/Cellar/composer/1.4.2/libexec/composer.phar/src/Composer/DependencyResolver/Solver.php on line 220</p>
    
    <p>Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried
    to allocate 67108864 bytes) in
    phar:///usr/local/Cellar/composer/1.4.2/libexec/composer.phar/src/Composer/DependencyResolver/Solver.php on line 220</p>
  </blockquote>
  
  <p>I tried setting the memory_limit to 2G in my php.ini file but did not work.  I found my php.ini by running <code>php -i | grep php.ini</code></p>