title: How to install Composer on a Mac?
body: <p>I'm trying to get the Laravel PHP framework installed and for that I need to install Composer. However I'm getting stuck there. I installed it before for Symfony but I couldn't get it to work so I think I deleted it. </p>
  
  <p>When I open the terminal on Mac and enter one of the commands for installing composer like: </p>
  
  <pre><code>curl -sS https://getcomposer.org/installer | php
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>-bash: php: command not found
  curl: (23) Failed writing body (0 != 1635)
  </code></pre>
  
  <p>Why is this?</p>