title: Composer error Could not open input file: composer
body: <p>I'm having a problem with Composer. I have Composer installed globally on my machine. I am trying to install intercom using composer. I tried the command:</p>
  
  <pre><code>php composer.phar require intercom/intercom-php
  </code></pre>
  
  <p>but that returned "Could not open input file: composer.phar"</p>
  
  <p>After investigating and reading the issues others have had I then tried </p>
  
  <pre><code>php composer require intercom/intercom-php
  </code></pre>
  
  <p>but that returned "Could not open input file: composer"</p>
  
  <p>As I stated, I have Composer installed globally on my machine. I can type in the command "composer update" and it works from any directory.</p>