title: How do I set the memory_limit for PHP CLI when using xampp
body: <p>I have tried setting the limit in php.ini but I always get the same error:</p>
  
  <p>Allowed memory size of 262144 bytes exhausted (tried to allocate 341351 bytes) in Unknown on line 0</p>
  
  <p>I can work around this by calling <code>php -d  memory_limit=2048M</code> script.php</p>
  
  <p>But can't figure out what to do with composer.</p>