title: How to use a specific version of composer?
body: <p>I am using a shared host which comes with an old version of composer. Unfortunately, it's an old version its not able to install something properly. My shared host provider said I can simply install a new version to my shared root directory. </p>
  
  <p>So I did that by adding a php.ini file and then running the following command </p>
  
  <pre><code>php -r "readfile('https://getcomposer.org/installer');" | php -c php.ini
  </code></pre>
  
  <p>That seemed to work and when I run the command to check the version it only shows me the new version when I run <code>php composer.phar -V</code>. But when I run <code>composer -V</code>, it shows me the old version.</p>
  
  <p>How can I override the main composer for my shared directory? And by the way, I did this in my root directory as I have multiple domains so was hoping I could get this to work in all domains. </p>